Task IAgent.Stop(StopContext context) { if (_host == null) { throw new InvalidOperationException("The host is not ready."); } return(_host.Stop(context)); }