standalone rpc_proxy as a class rather than only as a context manager