Fixes little issue not saving the log when crashing...