Fix annoying error msgs on exit.

Those sys.exit() calss were needed after all!