get exit code w/o polluting stout