If you close a chat window without exiting the chat session, the window will reopen when a new message is available.

To exit a chat session, choose Exit Chat from the menu in the upper-right corner of the chat window. Other participants of the chat session receive a message that you have exited:

The chat window can also be closed by clicking the red button in the upper-left corner: