diff --git a/run.js b/run.js
index 037dd1b64a2c75e18b2c38af4cbd4d7b51cee340..54d9f078eafe6f91c3e247705a9f7a1c05175e57 100644
--- a/run.js
+++ b/run.js
@@ -145,6 +145,7 @@ dirs.forEach(function(dirObj) {
     }
   } catch(e) {
     console.log("Error loading " + handlerPath + ": " + e);
+    require('process').exit(1);
   }
 
   var so = {