If your model has a BYPASS tstat, I would suspect the tstat is bad. BTPASS tstats NEVER stop the flame. When temp is reached the flame"bypasses" to a small idle flame and when it calls for cold the flame goes to full flame. I would suspect when it goes to bypass, the flame drops too much and the Thermocoupler stops the gas flow,.hence the flame goes out. Doug