Background programs can be a pest, they can interupt software installation, program running (especially video editing) and the difficulty you have encountered. The previous response is good advice, however you can download and install a program which shuts down background programs for you it is called 'Enditall' just type Enditall in your search engine and you will be given a choice of links. But be careful it is a powerful tool and should be teated with respect. Good luck.
when i shut down windows xp and it goes to windows is saving setup then windows is shutting down once it reaches shutting down i have not timed it but 40 secs sounds about right but then with anti virus ,firewalls and other extras running i am not surprised
so it sounds ok to me you can not be in that much of a hurry