The only thing that worked for me was to
1. Force a shutdown of the computer. pull the plug if you have to.
2. Reset SMC before rebooting
3. Then Do MULTIPLE resets of PRAM, one after another...3 times in a row works for me.
4. Then once you are back up and running, repair disk permissions.
Then try shutting down the computer. It should, hopefully, work then.