It really does sound like you might have a loose connection but before you go investing in an expensive motherboard, it's time to do some old fashioned sleuthing. I'd be checking all wiring connections from board to doorlock/switch to incoming power.
When it stops, is the display totally dead...