cleanup client_protocol