quits mid-cycle

We just replaced our dishwasher because the old one would quit mid-cycle. The new one quits mid-cycle as well. The old one would start up again when we started a new cycle. This one (with more electronic controls) needs to be reset by resetting the breaker. We had a repair man here who found that there was electricity to the dishwasher after it had shut off mid cycle. He replaced the control panel, but it is stlll happening at least 80% of the time. Any ideas?