I made an application on Automator (app x) that launches few applications (app a,b,c). I was wondering instead of creating another application to quit the apps(app a,b,c), is there a way I can get Automator to quit those apps when I quit app x?

note: when I launch app x it doesn't have the dot underneath it that indicates an application is active.