Fix crash when can't create log file
new package