Fixed kill_if_running.