fixed the problem with unsaved logs when the application was killed