update Iterator to be AutoClosable to allow try-with-resource usage
set currentKv to null after iterator.remove()