'@param notifier: callback to remove from list of disconnect callbacks.'

def dontNotifyOnDisconnect(self, notifier):

    try:
        self.disconnects.remove(notifier)
    except ValueError:
        pass
