Closing session when disconnect clicked