diff --git a/bin/server/request.js b/bin/server/request.js
index <HASH>..<HASH> 100644
--- a/bin/server/request.js
+++ b/bin/server/request.js
@@ -431,7 +431,12 @@ function runHooksMode(mode, symbol, next) {
     if (!type) {
         const err = Error('Hook type not defined: ' + key);
         err.code = 'ESHOOK';
-        throw err;
+        if (next) {
+            next(err);
+            return;
+        } else {
+            return Promise.reject(err);
+        }
     }
 
     // run the hooks
error in running hooks consistent with async paradigm