Test closing in the exception case.
Return value of the with-resource-scope block.