4800: run-command calls sys.exit() with an integer.

Closes #4800.