Why do we want to closeChat when it is unmounted?
Why do we want to closeChat when it is unmounted?