Recover from failed writing to LOGFILE
Merge pull request #119 from phanimahesh/fix-lp-1168608

Recover from failed writing to LOGFILE