in reply to Re: Failed to close file -- tests
in thread Failed to close file

The error message for open should also include $!