Exit with nonzero exit status on grammar