my computer has started to take a while to shut down, i go to turn off computer then turn off and it used to close down ok but now i always get a blue box come up with not responding and have to click on end now but its a nusiance as have to wait for that where as before could just shut down and leave it.
its says ending program, if you choose to end prog immediately you will lose unsaved data so i wait then it comes up to end program now click end now. which does turn it off but i never used to get that before it closed down after the first 2 clicks on the red box shutdown.
As Gromit says, it sounds like something is still running when you are trying to shut down. Check on your task manager / processes what is running. Plus if there isn't any unsaved data its safe to click end now and it will shut down.