You can sign out by right clicking the Teams icon on the system tray then click on sign out.