Mac refusing to shut down because of finder? When I shut down, restart, or update and restart my mac goes about shutting applications down to get ready to turn the computer off as it normally does but after my top bar and desktop icons have gone away it just stops. 

Its just a dock and a wallpaper, the only application that's open is Finder which is stuck in a half-closed state that no amount of relaunching will fix. 

While trying to fix this glitch disk utility also went into a state of refusing to force quit and freezing. 

When it's in this glitched state I can start opening up applications and use them like normal although they sometimes get a bit buggy especially if they need major graphics card usage. 

I can shut my mac down after this in three ways, hold down the power button, unplug the computer, or use the command shift - command - power. But when I try to update my mac and click restart and then do one of those three methods the update doesn't get installed. 

So far I've tried resetting the VRAM and booting into safe mode neither of which have worked. Please help I'm desperate. 

Im using Sierra currently on a 2015 iMac
There are 2 tools I recommend to use to narrow it down.

One is called EtreCheck (you have to download it)

The other is built-in system check from Terminal. The following command runs system diagnostics and creates a text file. 

sudo sysdiagnose -f ~/Desktop/


It might take 5 minutes but creates complete report. 

We could also just look for it in the Console.
For that you need to note exact time when you try to shut down.
Now go to the time stamp in the Console and see what it says.