core/index: GraceNode should exit with a 'failure' code on error.