assure closing of iterators in case of breaking
more checks on iterators and stop processing