I did a little more testing and discovered that if I push hard on the ends of the control panel on the front of the dishwasher, I can hear clicking and the dishwasher will continue through the cycles but if I let go i can see the door move out just a little and it stops the cycle. Would that be the switch or something else wrong with the door? I did replace the gasket a little while back and felt more resistance when I closed the door. Could that be somehow causing the problem? I'm not sure it's the switch. U cab make a video if that would help.The door switch will interrupt the cycle and stop the washer. Replace the switch and make sure the door latch holds the door shut .