Your pc has been set to automatically reboot when there is a system failure, to stop this from happening right click on my computer, choose properties, click on the advanced tab and choose startup and recovery button, in there untick the automatically reboot option in the system failure section...