Kitchaid dishwasher latch release mid cycle

My Kitchenaid dishwasher stops mid-cycle as a result of the door pops open. It can be resumed once the door is latched again (and start button is pressed) but the door can pop open up to 2 times per cycle. How can this be repaired?