In the case of an engine fire, you should not:

In the event of an engine fire, turn off the engine as soon as possible. Do not open the hood if you can avoid doing so.
DMV Writen Test