Hmm lets see if perhaps the system is crashing and automatically restarting on shut down or sleep mode.
Turn off automatic restart lets see if the system goes to a blue screen or hangs on shutdown.
Press the Windows Key and the the X key, In the pop up list Click on System. On the left side toward the bottom click on Advanced system settings >Click on the Advanced tab > Startup and Recovery click on settings> At the bottom under System failure. Uncheck the Automatically restart box. Click OK and Exit.