Retry if there's a failure trying to open the log file.