Exit with a non-zero code on failures