Added logic to watch for spawns of the parent applications - we had a situation where the app we were calling was just another helper app that exited right after it launched a child app.  we now delay cleaning up dependent apps until all spawns are cleaned up as well.