code: @Override
      public void destroy()
      {
          indexManager.close();
          if (schemaManager != null)
          {
              schemaManager.dropSchema();
          }
          if (mongoDB != null)
          {
              logger.info("Closing connection to mongodb.");
              mongoDB.getMongo().close();
              logger.info("Closed connection to mongodb.");
          }
          else
          {
              logger.warn("Can't close connection to MONGODB, it was already disconnected");
          }
          externalProperties = null;
          schemaManager = null;
      }
docs: /*
  (non-Javadoc)
  
  @see com.impetus.kundera.loader.ClientLifeCycleManager#destroy()