The thermocouple, which operates as a safety device, turns the gas supply off when the pilot light goes out. ... A burned out or broken thermocouple should be replaced. To replace a thermocouple: Step 1: Unscrew the copper lead and the connection nut inside the threaded connection to the gas line.