In the event of a serious problem with Windows, a blue-screen error code can help you figure out what's wrong. If your system reboots too quickly to see what the code is, disable automatic restarts.
You can find this setting in the "Advanced system settings" section under your computer properties (Win+Pause). On the advanced tab, click "Settings" under "Startup and Recovery" and uncheck the "Automatic restart" box, as seen above.
This feature has been around for a while, but we've never featured it before, and it's a good tip to have on hand. The How-To Geek has some more tricks for understanding and troubleshooting the dreaded blue screen of death at the link below.