In gas fireplaces, the thermocouple retains the gas flowing towards the pilot light so long as combustion is going on there. It does this by sending a little degree of energy in to the fuel valve When it detects heat, signaling the valve to remain open.Otherwise, the risks are fully borne by you. That is a hard scenario you’d want to stop about y