When you start to shut down Windows XP, it has to “kill” any live applications or processes that are currently running

However some applications always run in the background. You can reduce the amount of time that Windows XP waits for those applications to close before Windows XP kills them. Edit three different Registry settings to change this :

1. Select Start -> Run -> regedit.
2. Navigate to HKEY_CURRENT_USER\Control Panel\Desktop. Select WaitToKillAppTimeout and set the value to 1000.
3. Select the HungAppTimeout value and set it to 1000 as well.
4. Navigate to HKEY_USERS\.DEFAULT\Control Panel\Desktop. Set the WaitToKillAppTimeout and set the value to 1000. Select the HungAppTimeout value to 1000 as well.
5. Navigate to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control. Select the WaitToKillServiceTimeout value and set it to 1000.

Now you can even automate the killing process, thats is windows doesnt wait for user to kill the application by showing a dialog box.To do this :

6. Navigate to HKEY_CURRENT_USER\Control Panel\Desktop. Select the value AutoEndTasks and change the value to 1.
7. Close the Registry Editor.

Note: Alter registry settings on own risk.You can back up registry before altering it.

                        Share/Save/Bookmark