def off():
    global annex_thread, target
    if annex_thread is None:
	return 
    for i in range(10):
	try:
	    close = target.close
	except __HOLE__:
	    # It may not have been initiated yet.
	    # wait and repeat
	    print 'Can not turn it off yet, waiting..'
	    time.sleep(1)
	else:
	    close()
	    break
    else:
	raise
	
    heapyc.set_async_exc(annex_thread, SystemExit)
    annex_thread = target = None
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/guppy-0.1.10/guppy/heapy/Remote.py/off