Use result of last spec when stopping on failure
Removing unnecessary use statement
Fix argument formatting
Merge pull request #566 from ciaranmcnulty/bugfix/error-code-stop-on-failure

Use result of last spec when stopping on failure