public void Abort() { if (_registry != null) { object service; if (!_registry.TryRemove(_servicePathBase, out service)) { throw new InvalidOperationException(); } } }