Makes crestc fail on errors.

Thanks to Eric Engstrom for this change.