Only delete the log file if it exists.