make kill_pid able to be called from watchdog context again.