Refactored disconnect and enabled deletion of chatrooms and sessions on user disconnect