diff --git a/lib/cli.js b/lib/cli.js
index <HASH>..<HASH> 100644
--- a/lib/cli.js
+++ b/lib/cli.js
@@ -46,6 +46,8 @@ var cleanUp = function(runner, log) {
     util.puts('Shutting down selenium standalone server');
     server.stop();
   }
+
+  process.exit(passed? 0 : 1);
 };
 
 var printVersion = function () {
fix(cleanUp): Added step to exit process with error code if tests did not pass.