Go to Control Panel, System, Advanced, Startup and Recovery, Settings.
Uncheck 'Automatically restart'. You want it to write an event to the system log. There you can view it and analise the problem.
What is ransomware and how do I protect my PC from WannaCry?
Disney layout supervisor Rob Dressel on the challenges of visualising Moana
Siri vs Google Assistant