scanning
This raises RefinementCancelled in the process running the
fit, at its next residual evaluation. A script that does not catch it
prints a traceback and exits.
The stages that already finished are kept, and the working state stands at the last of them.
The stage in flight is abandoned: no history node, no committed parameters, and the model goes back to where that stage found it.