code: public void join() {
          try {
              UnicastRemoteObject.unexportObject(registry, true);
              /*
               * NOTE: javaRunner.waitForExit() works for Equinox and Felix, but not for Knopflerfish,
               * need to investigate why. OTOH, it may be better to kill the process as we're doing
               * now, just to be on the safe side.
               */
              javaRunner.shutdown();
          }
          catch (NoSuchObjectException exc) {
              throw new TestContainerException(exc);
          }
      }
docs: Waits for the remote framework to shutdown and frees all resources.