The danger seems minimal. If we've gotten to this point, we're already opened and written to the file handle. Writing to it again and closing should only throw an exception at this point if we've run out of disk space or have a corrupt file system, etc. Which means we've got bigger problems.