code: private void closeRemainingEnumerations()
      {
          List<AbstractQueueBrowserEnumeration> enumsToClose = new Vector<>();
          synchronized (enumMap)
          {
          	enumsToClose.addAll(enumMap.values());
              for (int n = 0 ; n < enumsToClose.size() ; n++)
              {
              	AbstractQueueBrowserEnumeration queueBrowserEnum = enumsToClose.get(n);
                  log.debug("Auto-closing unclosed queue browser enumeration : "+queueBrowserEnum);
                  try
                  {
                  	queueBrowserEnum.close();
                  }
                  catch (Exception e)
                  {
                      log.error("Could not close queue browser enumeration "+queueBrowserEnum,e);
                  }
              }
          }
      }
docs: Close remaining browser enumerations