'Stop all the threads'

def stopAll(self):

    try:
        self.serverHostDefsLock.acquire()
        for hostKey in self.serverHostDefs.keys():
            self.stopAndClearHost(hostKey)
    finally:
        self.serverHostDefsLock.release()
