our IDEA-based application starts some external processes (an external JVM with debugger, specifically).
then I get "process... is running. disconnect from the process?" when I'm trying to close IDEA.
how can I add a listener for "IDEA is closing" event so that I can correctly terminate our external process?