Hid the chat window rather than close it in order to preserve sent messages.