I had a similar, possibly related issue with this. If not it may be something similar, try Googling the exact error messages you get.
First, open Activity Monitor in Utilities, click on the memory tab. Scroll down to see if there are any items in red, namely "coreaudiod", identityservicesd" and "callsevicesd" all saying not responding. If so this is what I did after finding this via Google:
Go to Audio Midi Setup and look in the audio devices, there was a DigiCoreAudio device, usually there if you had installed pro tools on your system at some point. If so, find Digidesign CoreAudio.plugin in the following path: /Library/Audio/Plug-Ins/HAL. Delete the plug in and move it to the trash.
This also solved another issue where the dock remaind when I Shut Down my Mac, which terminates the shut down process and I had to force shut down.
Hope this helps.