code: @Override
      public void destroy()
      {
          indexManager.close();
          if (schemaManager != null)
          {
              schemaManager.dropSchema();
          }
          if (bucket != null)
          {
              LOGGER.info("Closing bucket " + bucket.name() + ".");
              CouchbaseBucketUtils.closeBucket(bucket);
              LOGGER.info("Closed bucket " + bucket.name() + ".");
          }
          if (cluster != null)
          {
              LOGGER.info("Closing connection to couchbase.");
              cluster.disconnect();
              LOGGER.info("Closed connection to couchbase.");
          }
          else
          {
              LOGGER.warn("Can't close connection to Couchbase, it was already disconnected");
          }
          externalProperties = null;
          schemaManager = null;
      }
docs: /*
  (non-Javadoc)
  
  @see com.impetus.kundera.loader.ClientLifeCycleManager#destroy()