adding before hook to --bail test
prevent hooks from being called if we are bailing
Merge pull request #859 from aearly/bug/bail-hooks

Prevent subsequent hooks from being called if we are `--bail`ing.