Blue Screen errors (also sometimes called black screen errors or STOP code errors) can occur if a serious problem causes Windows to shut down or restart unexpectedly. You might see a message that says, "Windows has been shut down to prevent damage to your computer."
These errors can be caused by both hardware and software problems. If you added new hardware to your PC before the Blue Screen error, shut down your PC, remove the hardware, and try restarting. If you're having trouble restarting, you can start (boot) your PC in safe mode. For more info, see
http://windows.microsoft.com/en-us/windows-8/resolve-windows-blue-screen-errors