So how should this be done ? The IDE just kills the program ?
Thats not a good practise.
You can already do this by setting a tool to run at IDE shutdown which will then
communicate to the original tool to close itself.
I do not see a problem with that.