Exit with proper exit code on failure
Exit with proper exit code on failure