Diswasher Turns Off During Cycle - Power Failure

Cycle begins normal but during cycle it will shut off and will not restart. I turn the untripped circuit breaker off and then back on, then I get a PF error with the lights blinking. I clear the PF and sometimes I can restart the cycle all over again but fails during the first 5 minutes of the cycle. It is not tripping the circuit breaker but turning it off and on seems to reset something in the unit.