fix erroring in smoketest

pass an exitcode on every usage of "die"