docs: def failedToGetPerspective(self, why, broker):
          """The login process failed, most likely because of an authorization
          failure (bad password), but it is also possible that we lost the new
          connection before we managed to send our credentials.
          """
          log.msg("ReconnectingPBClientFactory.failedToGetPerspective")
          # put something useful in the logs
          if why.check(pb.PBConnectionLost):
              log.msg("we lost the brand-new connection")
              # fall through
          elif why.check(error.UnauthorizedLogin):
              log.msg("unauthorized login; check worker name and password")
              # fall through
          else:
              log.err(why, 'While trying to connect:')
              reactor.stop()
              return
  
          # lose the current connection, which will trigger a retry
          broker.transport.loseConnection()