def cbClose(result):
 from twisted.internet import reactor
 reactor.stop()

def cbClose ( result ) : from twisted . internet import reactor reactor . stop ( )
close the connection when we finish everything .