Return exit code from doRun

Exit code was not returned so travis for example did not report about failed specs. This PR fix the it.