Recover from failed writing to LOGFILE