It may happen that we are running out of space in the middle of writing the file, and fopen deleted it already.