killall does something like your (1).
pstree can be useful; it may identify a parent process that you can kill. That's in homebrew.
Topic:
App & System Services
SubTopic:
Core OS
Tags: