I am shelling out to another application from within my application. I wanted to know what is the best way for me to shutdown the app that I shelled out to??

Also, if the user quits the other app, I want my app to shutdown as well.