Invoke sys.exit(x) depending on if exception is called. - v. 1.12.

Invoke sys.exit(x) depending on if exception is called. - v. 1.12.