Ok, your losing power to the gas valve. Where are you losing it before the valve?
Does the pilot stay lit?

(rhetorical quesitions)