Don't assume the file can't be closed just because it couldn't be reopened.