code: synchronized void close() {
      if (this.remoteManager.isPresent()) {
        try {
          this.remoteManager.get().close();
        } catch (final Exception e) {
          LOG.log(Level.WARNING, "Exception while shutting down the RemoteManager.", e);
        }
      }
    }
docs: Closes the remote manager, if there was one.