Try making sure the fan (in or out) of a computer is not right next to a wall and that you don't have 84 things in one socket.
Automatic restarting isn't very good as I once had an error where it turned on, errored, restarted, turned on, errored, restarted, etc until I force-switched off. (via power button)