Change exit(0) to exit(1)