This is very useful. Thanks.
When we use AHK command Process, Close to teminate a Process, its Tray Icon gets orphaned and can be cleared from TNA (only) by hovering the mouse over it.
It would be nice & useful if you could wrap up a function: ProcessClose() that deletes the tray icon before terminating the process.
PS: Self-Teminating script that leaves it Icon orphaned.
Process, Close, % DllCall("GetCurrentProcessId")