def METHOD_NAME(self, slaveid):
    """
    Callback function invoked by terminated slave threads
    """
    self.lock.acquire()
    try:
        self.slavelist.remove("threadmanager-slave%s" % slaveid)
    except:
        pass
    else:
        self.activeThreadCount -= 1
    self.lock.release()