door switch right? if so unplug the unit open this up and you need to go through the wire connections and make sure there on properly and make sure there are no bare wires touching the cabinet in anyway exspecially by the door switch where you seen the spark at
If this answers your question,click accept as this is how we get paid for our knowledge.Need more info ask.bonuses appreciated. note;As I am not there this is based on your observations and information.
your wel-come good luck and thanks