public void UnRegisterBucket(BucketBase bucket) { if (Buckets.TryRemove(bucket.Name, out var removedBucket)) { _configHandler.Unsubscribe(bucket); removedBucket.Dispose(); } }