I had a similar intermittent problem last year. Spoke to a gas fitter about it while he was replacing the flexible gas hoses on the boat. He suggested turning the burner ring round slightly, and explained that sometimes the flame is not close enough to the thermocouple to heat it up sufficiently. Tried that and - so far - no problems this year.