Button to log out

Check this thread: Logout alternative