Like previous versions of windows, it takes long time to restart or shutdown windows XP when the "Exit Windows" sound is enabled. To solve this problem you must disable this useless sound.
• Click Start button.
• Go to settings > Control Panel > Sound, Speech and Audio devices > Sounds and Audio Devices > Sounds.
• Then under program events and windows menu click on "Exit Windows" sub-menu and highlight it. Now from sounds you can select, choose "none" and then click Apply and OK.
Now you should see some improvements when shutting down your system.