Added method for disconnecting the socket.
Response error handling for group command.