Add support for the `captureExceptions` flag

This allows us to prevent grunt from quitting when an exception occurs in our test suite.