SUS-2413 Improve usage of Behavior and errors handling
This MR add checks during the computation of the different best fits, ensuring that the computation stops and the program does not crash if something unexpected happens during the processing.
Closes SUS-2413
Edited by Benjamin Weyer