If you have an engine fire, you should:

To keep an engine fire from spreading, you should turn off the vehicle's engine as soon as possible. Do not open the hood if you don't have to.
DMV Writen Test