Killing or restarting Windows explorer.exe, e.g. with:
taskkill /f /im explorer.exe && explorer.exe
causes systray apps to disappear from the system tray. As far as I can tell, the app is still running - it still shows up in Task Manager when run from the IDE or as a built executable.
I know this is very much an edge case, but it's maybe something worth noting.