exit with non-zero status if errors were found