code: @Override
      public void destroy() {
          try {
              try {
                  if (myPubSubGateway != null) {
                      myPubSubGateway.punsubscribe();
                      long now = System.currentTimeMillis();
                      while (myPubSubGateway.isSubscribed()
                              && System.currentTimeMillis() - now < 1000) {
                          Thread.sleep(1);
                      }
                  }
              } catch (Exception e) {
                  LOGGER.warn(e.getMessage(), e);
              }
  
              try {
                  if (myPubSubJedis != null) {
                      myPubSubJedis.close();
                  }
              } catch (Exception e) {
                  LOGGER.warn(e.getMessage(), e);
              }
          } finally {
              super.destroy();
          }
      }
docs: {@inheritDoc}