Stop watching pids when process ends.