I believe this usually this happens if the fuel / air mixture is not rich enough (too much air / too little fuel) which causes the cylinder heads to get too hot which means that any unburnt fuel in the cylinders will continue to ignite even after the ignition has been cut.
It sounds like your dizzy cap isn't lined right which causes the engine to stay running after the ignition has been switched off. i had the same problem with my fiesta
If the check engine light is flashing when the engine is running , that indicates that an ignition misfire has been detected
An ignition misfire has been detected
If your check engine light is blinking that means an ignition misfire has been detected
An ignition misfire has been detected
A blinking check engine light means an ignition cylinder misfire has been detected
it could of been a short in the wiring in the engine compartment or you had a fuel leak and it got into wires or the ignition system
Sounds like the engine heats and the ignition fails.
No the engine is not ruined. It needs a new head gasket and an oil change after the gasket been changed.
If the engine has been running and is hot, shutting off the ignition allows the water in the water jacket to continue to be heated. Therefore, until the engine cools down below boiling temperature, it will continue to heat the water. Boiling is prevented by a couple of things; anti-freeze (which raises the boiling temperature) and the radiator cap (because water boils at a higher temperature when under pressure). If your car is overheating, you should not remove the radiator cap (until the vehicle is cool), you can be severely burned as the pressure drops rapidly, boiling the liquid and forcing it out of the radiator!
Right there in the instrument cluster. Turn on the ignition switch but do not start the engine. The check engine light will stay on. If you do not see it then the bulb is burnt out or has been removed.
Simply turn on the ignition but do not attempt to start the engine. If the light bulb is good you will see the Check Engine light illuminate and stay on. If you do not see the Check Engine light, the bulb is defective or has been removed.