Navigate to control panel in Category View, click "Review Your Computers Status" under System and Security. On the left side of the screen, click the link that says "View Performance Information. Next, click "Advanced Tools" and under "Performance Issues" should be your problem.
It will probably say something along the lines of "A program is interfering with Windows shutting down."