If the drain pump isn’t running properly, water will accumulate inside the machine. This can cause the dishwasher to fill with water and shut off automatically. To fix this problem, turn the power switch back on and then open the door. Make sure the drain hose is clear of debris before turning the power switch back on again.