Fix the exception handling for cleanup tasks in ClosingIterator
Update ClosingIteratorTest after Andres' cleanup task refactor
Merge pull request #1964 from jakub-/exception-handling-fix

Fix the exception handling for cleanup tasks in ClosingIterator