Exit with error status on failure