Something went wrong when writing to the file