Update chat to close on ESC