Make salt cli return a non-zero error code if an error occurred

We have all the logic in the CLI to do this, but we never actually passed a retcode in. (This is likely a regression.)

Fixes #18627