Just a guess. The door latch is known to go bad on the DW's. Easy enough to test and change. (If the latch malfunctions, the machine thinks the door is open and all power is killed).
Heres a link on how to change (once you pop the latch out, you can test).
Answers & Comments
Pins may b corroded ..clean connection n inspect othr wiring. Utube has plenty fix videos
Just a guess. The door latch is known to go bad on the DW's. Easy enough to test and change. (If the latch malfunctions, the machine thinks the door is open and all power is killed).
Heres a link on how to change (once you pop the latch out, you can test).
https://youtu.be/5Y7cE_qTNxI