Reduce the timing that XP waits to close any program before it goes to shutdown

Start Registry editor and goto the following registry key
Hkey_Current_User \ Control Panel \ Desktop
Select (Waittokillapptimeout),  Right click on it and chose the modify
Change its value to (1000) and press Ok
After that right click on (HungAppTimeout) and choose the modify option, change its value to (1000) and press Ok
After that find the following key Hkey_Users \ Default \ Control Panel \ Desktop
Go to (WaitToKillAppTimeout) right click on it and choose modify and change its value to 1000 and press OK
After that find the following key Hkey_Local_Machine \ System \ Currentcontrolset \ Control
Choose the option (Waittokillservicetimeout) right click on it and select modify and change its value to 1000 also and press OK