in case of bad formatted JSON, cut connection in Rpc