Added fault-tolerance mechanisms: Terminated and postRestart