[minor fix] Replaced exit(1) with exit(EXIT_FAILURE) for portability.