The gas control is the last thing to suspect and the first thing to be blamed.
Prove the inputs
- Inlet pressure with the burner calling.
- Thermocouple signal at the valve, warm.
- Flue draft, with the space as it will be used.
- Burner and jet condition.
Only then does the valve itself get judged.
What the closet does
Louvres blocked by storage, a vent run squeezed into a small space, or a flue terminating too close to a wall: each produces lockouts and a weak flame that look like a control failure.
Replacing
Match the valve to fuel and appliance rating, new gaskets, leak-test every joint, then prove pilot and burner through a full cycle with the space closed as normal.
The check people skip
Test with the cupboard door shut. A unit that passes with the door open and fails closed has an air problem, not a valve problem.
Safety
A smell of gas means out, then call. Soot or spillage stop the unit.
What to have ready
Symptom, space condition, vent route.