fix issue #25 (errors are reported, but grunt still finishes with 'Done, without errors.')