fixed .log file closing bug on win8