IO now tries 10 times to write to a file.