After switching gas off: Flame is detected.
Check gas cock; replace if defective. Clean condensate trap.Check electrodes and leads; replace if defective.Check flue gas system; clean or repair if needed