Go to control panel > power options.On the APM tab,if you have one,tick "Enable Advanced Power Management support." Then click apply.

Now try and shutdown.