Introduce AutoCloseableIterator