Fix bug where FAIL_THREAD was never restarted