Pode haver uma maneira de fechar o desligamento, reduzindo o tempo para a execução de serviços (retirados de aqui ):
The first two settings can be found in the key
HKEY_CURRENT_USER\Control Panel\Desktop
. They are called HungAppTimeout and WaitToKillAppTimeout. You should also set the key AutoEndTasks to 1 if it is not set to this value already.The timeout settings for Services can be found in the Registry key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control
and is called WaitToKillServiceTimeout. The value is entered in miliseconds which means that the value 2000 should be entered if you want to set this to 2 seconds each.