use os._exit(0) instead of sys.exit()