isTerminal

Check if a state represents a terminal state (Complete or Failed).