Add FAILED state. #4047