debugging for log file crash on windows