When the water gets to temp the pilot light goes out with the main burner. Any one know what causes this problem. Im going to replace the valve (the heater is 10 years old).