1. Press "Window +R" keys to start "Run" dialogue box and type "gpedit.msc" in the dialogue box.
2. Click "OK", "Local Group Policy Editor" window will pop up.
3. Navigate to "Computer Configuration" --> "Administrative Templates" --> "System" --> "Shutdown Options". Double-click "Turn off automatic termination of applications that block or cancel shutdown" on the right panel. In the new dialogue box popped up, set configuration option as "Enabled".
4. Next time when you shut down your machine, the machine will be shut down directly without prompt.