ISPN-5089 Store divisors in a temporary variable to avoid java.lang.ArithmeticException: / by zero
ISPN-3743

Ignore some of the errors that can be thrown by a node while stopping:
IllegalStateException and NullPointerException.