code: public void clean() throws Exception
      {
          try
          {
              client.delete().forPath(basePath);
          }
          catch ( KeeperException.BadVersionException ignore )
          {
              // ignore - another thread/process got the lock
          }
          catch ( KeeperException.NotEmptyException ignore )
          {
              // ignore - other threads/processes are waiting
          }
      }
docs: Attempt to delete the lock node so that sequence numbers get reset
  
  @throws Exception errors