Fix segmentation fault if RpcMethod::process throws exception