Shutdown does not work sometimes

In 1 of 10 times when i shut down my PC (via menu), it does not work.
What happens is the icon theme will vanish and it goes to a very basic looking icon theme
here’s a screen of the taskbar: https://imgur.com/a/QhNcM

Also I can’t open a terminal or anything. I can’t open anything from the menu.
I either have to press the on/off button, then it will shut down immediately
or if I wait for ~30 seconds it will also shut down.

This problem accures on a PC running 16.04.2 LTS and on a notebook running 16.10
I think I even had this problem even once in a virtual machine
Is this problem know. Do others have that too?

( Don’t know if it is related to that problem.
After startup sometimes the “show desktop” , calender/clock, “desktop switcher”
icons on the taskbar will stay black and are not usable )