Made thin scripts aware of which app they are restarting/starting