How to stop the calculation when Keff<1?

Hello everyone, how can i stop running when Keff<1 in a depletion calculation? Is there any settings to do that?