Return exit code from doRun method

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