Many possible causes. One of the easiest to start with is to assure that the proper drivers are installed -- particularly the vido/graphics drivers. If you've installed an aftermarket graphics adapter, go to #2 below, If you have the OEM graphics adapter in use, follow #1.
1)Go to the PC mancufacturer's site -- i.e. Dell, Compaq, etc. -- and look for updates to the drivers for the particular Model + OS combination. If the curent drivers are not up to date ( there are usually frequent updates ) install the new driver and retry.
2)If you are unable to follow #1, then go to the graphics adapter manufacturer's site (i.e. ATI, NVida, etc. ) and look for drivers there. Find the proper adapter+OS driver and install and retry.
This "fix" has worked on about 60% of the shutdown problems I've encountered -- especially when it has been on a relatively new machine or OS install.