The thermocouple is one of the parts that may need replacing if the gas starts but goes out again if the saftey button is released.