To stop the auto-restart (which is enabled by default on all newer Windows), go to Control Panel -> System -> Advanced -> Startup And Recovery -> Settings and uncheck "Automatically restart".