code: @Override
      public void destroy()
      {
          // if(logger.isDebugEnabled())
          logger.info("on close destroying connection pool");
  
          if (getConnectionPoolOrConnection() != null && getConnectionPoolOrConnection() instanceof JedisPool)
          {
              ((JedisPool) getConnectionPoolOrConnection()).destroy();
          }
          else if (getConnectionPoolOrConnection() != null && getConnectionPoolOrConnection() instanceof Jedis)
          {
              ((Jedis) getConnectionPoolOrConnection()).disconnect();
          }
  
      }
docs: /*
  (non-Javadoc)
  
  @see com.impetus.kundera.loader.ClientLifeCycleManager#destroy()