Exit nonzero if there are errors