_kill_pids: break loops when all pids killed