Got this from the W7 support >>
This problem can occur because of one of the following reasons:
1. One of your processes or services is not shutting down.
2. You have a faulty or incompatible device driver installed.
3. You have a faulty or incompatible program running.
I suggest you to update all the drivers in your computer.
Follow the steps below to update the drivers:
1. Go to start and type in Device Manager in the Start Search box, and then press ENTER.
2. Click Continue. If you are prompted for an administrator password or for a confirmation, type the password, or click Continue.
3. In the list of device types, click the kind of device, and then locate the specific device that is not functioning.
4. Right-click the device, and then click Properties.
5. Click the Driver tab.
6. Click on update driver, click OK.
http://windows.microsoft.com/en-us/windows7/Update-a-driver-for-hardware-that-isnt-working-properly
If Windows is unable to find an update for the driver, then you can download the latest drivers for Windows 7 from the manufacturer’s website.
Also, boot into safemode and check if your computer shuts down.
Do a clean boot to check if a background program is causing interference.
To find the process or program at cause follow the steps from the following article:
http://support.microsoft.com/kb/331796
Regards,
Afzal-Microsoft Support.
Visit our Microsoft Answers Feedback Forum and let us know what you think.
Hope this helps, good luck.