Stop using the machine if you smell insulation or burning paper, see smoke, find toner leaking out of a cover, crack the scanner glass, or feel a shock from the frame. Unplug the power cord only if you can reach it without leaning across a hot or leaking area. If you cannot, leave the machine and call the desk. Use a building extinguisher only if your own safety rules say you are the person who should.
Do not bypass an interlock. A door switch that is taped down will let the machine run with a cover open, and the fuser and the laser are not things to inspect that way. Do not open a fuser. It stays hot after the panel goes dark.
A code that returns after one calm power cycle, with the doors firmly shut, is no longer a reset. File a ticket and leave the machine in the state the technician will need to see. Tell us the code, the model, and whether anyone is still trying to print to it.