NXP-11222: do not do nested sys.exit calls in case of nuxeo failure to stop