private void stopPromptLoop() {
      lock.lock();
      try {
        endOfShell.signalAll();
      } finally {
        lock.unlock();
      }
    }
Method for tests to access the results queue
geode-dunit/src/main/java/org/apache/geode/management/internal/cli/HeadlessGfsh.java