microwave runs when door open

Microwave, light and turn table runs correctly when door is shut. When I open the microwave door, the microwave runs, light turns on (turn table does not).