Dishwasher stops mid cycle

The dishwasherstops mid cycle and all indicators go blank. Open and close door and weare able to restart another cycle. Once in a while we get a PF when it stops but most of the time it just goes blank.

I would check the power cord for bad connection in the junction box.