I have an application that starts minimized to tray. When running on Windows, this is true:
1. Start the application
2. Run taskkill /IM <myapp>.exe
3. System tray icon dies (disappears on next hover)
4. App is still running in task manager
If I show the app main window, then hide it, app closes as expected.
To see the symptoms, use the systray example and comment out window.show()