Converted to sys.exit for further 2.4+ compatability.