'OpenMDAO handling errors within groups

I am trying to run an optimization with SimpleGADriver in OpenMDAO. My model includes a cycle (subsystem) with a nonlinear solver, that contains a component that on occasions fails to compute its response. Is there any way to make this driver continue to the next iteration (iteration of the driver) on encountering this error, i.e., is there any way to break the nonlinear solver's solution and proceed with the next iteration of the driver?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source