ubuntu logout

Shell
gnome-session-quit

Source

Also in Shell: