code: @Override
      public void close() {
          log.debug("Close");
          if (dataSource != null) {
              try {
                  dataSource.close();
              } catch (IOException e) {
                  log.error("Channel close {}", e);
              } finally {
                  if (frames != null) {
                      frames.clear();
                      frames = null;
                  }
              }
          }
      }
docs: {@inheritDoc}