add close and disconnect to sock, client