use os.Exit non-zero for the error cases.