1. Start Regedit2. Go to HKEY_CURRENT_USER\Control Panel\Desktop\AutoEndTasks3. Set the value to be 14. In the same section, change the WaitToKillAppTimeout to the number of milliseconds you want