Fix: polling for killed process incorrect