Terminate the script with non-zero exit if error occurs.

I know this script probably isn't written well enough, but is there anyway to implement something similar to this non-zero exit if a test does fail? https://github.com/wookiehangover/grunt-mocha-selenium/issues/24