When I press system cog and "Shutdown.." it just freezes some windows and shuts Ubuntu down. I would expect to see the options to Restart or Shutdown.
It happened after some work with terminal, probably some packages.
P.S. if it could be related I got this at the same time as this error Missing System Settings after removing some packages and non of the answers help
Ubuntu 17.04