Ensure that representation drains the iterator of there's an exception while rendering. This solve the problem where the iterator is a Cypher query that needs to close the transaction.