code: public synchronized void stop() {
          if (isRunning()) {
              running.set(false);
              DeviceFinder.getInstance().removeDeviceAnnouncementListener(announcementListener);
              dbServerPorts.clear();
              for (Client client : openClients.values()) {
                  try {
                      client.close();
                  } catch (Exception e) {
                      logger.warn("Problem closing " + client + " when stopping", e);
                  }
              }
              openClients.clear();
              useCounts.clear();
              deliverLifecycleAnnouncement(logger, false);
          }
      }
docs: Stop offering shared dbserver sessions.