sys.exit instead of exit