Throw a proper error when something goes wrong.

Throw a proper error to make Grunt stop running.
Merge pull request #25 from sbrandwoo/fail-on-error

Throw a proper error when something goes wrong.