'Close all pool connections and shutdown the pool.'

def close(self):

    if self.shutdownID:
        self._reactor.removeSystemEventTrigger(self.shutdownID)
        self.shutdownID = None
    if self.startID:
        self._reactor.removeSystemEventTrigger(self.startID)
        self.startID = None
    self.finalClose()
