exit(0) should be exit(1), according to J.Soref