Log Out of Mattermost Messaging

You can log out from the Main Menu (the three lines next to your username).

Select Logout to log out of all teams on the server.