I have an ageing Thorn M Type boiler, what I have noticed is that the boiler seems to run OK but if I turn it off via the programmer (by moving the selector switch to off) whilst it is still lit the boiler continues to run until the water in the gravity fed system overheats and turns my loft into a tropical paradise. At first I suspected the boiler thermostat but as long as mains power is fed to the boiler the thermostat functions properly i.e. if I turn it off the boiler stops, and it also "cycles" normally. I am assuming that the gas control valve requires a mains feed to shut itself off. Is this correct? My concern is that in the unlikely event that the electricity gets cut when the boiler is running then it will continue running until the boiler melts down.