Exit 1 when errors are found

Note that this change set would also cause any web-based UIs to exit non-zero when errors are found. This seems reasonable to me, but pointing it out as it's different than discussed.

Also, I added two lines to skip printing the error summary header/footer when there are no errors.