By default Windows set automatic system reboot on every system failure. Though this option is for preventing further damages on your system, it is really frustrating to see unwanted system reboot for smaller issues.
Read this post on corenetworkz.com