public void Close() { this.rulesStorageKey = null; this.matchingRulesGroupedByBucket.Clear(); this.matchingRules.Clear(); var handler = Closed; handler?.Invoke(this, EventArgs.Empty); }