Added exit(EXIT_FAILURE)