diff --git a/index.js b/index.js index 3867f79555..f915b460c4 100644 --- a/index.js +++ b/index.js @@ -581,6 +581,7 @@ function try_callback(callback, reply) { } catch (err) { if (process.domain) { process.domain.emit('error', err); + process.domain.exit(); } else { process.nextTick(function () { throw err;