Make MappingIterator closable