I've been through all questions with the 'Shutdown' tag on this site - but this is different.
I choose "Shutdown..." from the session menu. I then click "Shutdown" on the dialog that appears.
Sometimes this does give me a shutdown and sometimes nothing happens and I am left with my desktop - which still works fine (that is, I can continue working on my computer if I want). Typing "sudo halt" from a terminal always works.
I'd like to have shutdown work every time. Can anyone help?