Fixed #1138 Implement try-with-resource for multiple resources
Fix (probably temporary) for the try with resources test