Replace exit(0) with exit(EXIT_SUCCESS)