I'm using Windows 10 (1709). I wrote a simple test script and everything works fine so far. But when I exit the app the icon in the systray doesn't get removed. It stays there until I hover the mouse pointer over it. I know this behavior from apps that crash. Windows doesn't seem to recognize that the app isn't running anymore.
I've tried to exit the app the following ways:
// v1
systray.kill()
// v2
process.exit(0)
// v3
systray.kill()
process.exit(0)
None of them makes the icon disappear after the app stops running.