tray icon can be null when app is shutting down (win)