Change exit(0) to exit(FAILURE)