Applescript, quit app if other app is quit
I've only dabbled in Applescript, but would you be able to create a second script that is basically reversed? In English it would look like:

tell Plex to quit
then
tell Audio Hijack Pro to quit