Close chat on exit.