code: public static void closeBucket(Bucket bucket)
      {
          if (bucket != null)
          {
              if (!bucket.close())
              {
                  LOGGER.error("Not able to close bucket [" + bucket.name() + "].");
                  throw new KunderaException("Not able to close bucket [" + bucket.name() + "].");
              }
              else
              {
                  LOGGER.debug("Bucket [" + bucket.name() + "] is closed!");
              }
          }
      }
docs: Close bucket.
  
  @param bucket
  the bucket