Better error handling for broken pipes in grunt build