Replace terminate behavior Booleans by an Enum