closable iterators in streams