Implemented Socket disconnection