Added in finalizer to prevent leakage
Fixed issue where distributed iterators weren't cleaning up identifiers
properly.