Open the registry and locate the key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management
then change the value of
ClearPageFile at Shutdown to a 0 IF the value is 1.
If the value is 1, it will take longer for your computer to shutdown.
Also did this:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\
Highlight the value
WaitToKillServiceTimeout and change this value to 1000.