code: public void shutdown() {
      log.info("Notifying device listener about shutdown");
      for (HardwareDeviceListener listener : deviceListeners) {
        for (AndroidDevice device : connectedDevices.values()) {
          listener.onDeviceDisconnected(connectedDevices.get(device));
        }
      }
      log.info("Removing Device Manager listener from ADB");
      AndroidDebugBridge.removeDeviceChangeListener(this);
      if (!shouldKeepAdbAlive) {
        AndroidDebugBridge.disconnectBridge();
      }
      AndroidDebugBridge.terminate();
      log.info("stopping Device Manager");
      // TODO add thread interrupt and join handling
    }
docs: Shutdown the AndroidDebugBridge and clean up all connected devices.