My Mac was running macOS 10.12.1 (Siera) and won’t shutdown easily. My display goes blac, but even after 10 minutes still no complete shutdown. I tried disc-repair, resetting NVRAM en PRAM, but nothing worked. Finally figured it the reason was MySQL. I quit MySQL. Installed the latest version of MySQL (just to be sure) and disabled auto-start. Everything is normal again.