added toggleTrainFailure