Here’s how to fix that.
Right-choose the Computer icon and choose Properties.
Windows 7 or Vista users will be taken to the system properties screen, so press Advanced system options.
Here we go… just uncheck the option for Automatically restart under the System failure section.
You’ll have to manually reboot the computer if this happens, of course.