code: @Override
      public void close() {
  
          logger.debug("{} close()", logPrefix());
  
          if (clusterChannelWriter != null) {
              retriggerCommands(doExclusive(this::drainCommands));
          }
  
          super.close();
      }
docs: Move queued and buffered commands from the inactive connection to the master command writer. This is done only if the
  current connection is disconnected and auto-reconnect is enabled (command-retries). If the connection would be open, we
  could get into a race that the commands we're moving are right now in processing. Alive connections can handle redirects
  and retries on their own.