? ? ? ? How to run a script on the event of another process getting killed.wrap it around in another script that should be invoked.
Like once a GUI app is closed by clicking the x at the top right corner of
the window(usually), i should invoke a script.