Seems it is thermostatically controlled and when it reaches temperature it shuts off the gas and goes out because the 'by pass' is blocked. This is a drilling in the gas valve which allows enough gas though to the burner to keep the flame alight when the main valve closes. The by pass gas supply...