Fixed closing of feature iterators