Samsung Microwave Switches

Most microwaves has three micro-switches in the door which controls the flow of electricity and also acts as a safety mechanism. 

Never Ever-EVER stop the microwave cooking process by opening the door, rather press Stop button.