code: def clientConnectionFailed(self, connector, reason):
          
          log.debug("Connect failed: %s", reason)
          self.conn.defunct(reason.value)
docs: Overridden twisted callback which is called when the
          connection attempt fails.