You can log out of Teamwork Chat by simply navigating to the bottom left pane and selecting the cog icon to the right of your name:


Once you select this a new 'profile settings' window will appear and the option to logout will is an option: