disconnecting notifications when chat window is closed