How To Know Which Background Processes To End