Remove some side effects from manually requiring Grunt. Closes gh-605.

* Add and remove process uncaughtException handler only when appropriate.