Crash is fixed under windows after exit by tray icon