I use Ubuntu 11.10 64 bits with Gnome Shell.
I have opened a bug because sometimes "Close session" and "Shutdown" buttons doesn't work. gnome-session-quit only works sometimes: bug
How can I close the session cleanly from console without gnome-session-quit?