N.Y. Comp. Codes R. & Regs. tit. 12, § 4-11.3
After the burner is manually lit the main flame shall be continually supervised while the burner is firing. The electrical circuit to the main fuel valve shall be automatically de-energized within four seconds after flame failure and the de-energized valve shall automatically close within the next five seconds.