Grunt test: improve uncaught error handling in specrunner