private void doDisconnect() {
    if (myStatus == ConnectionStatus.CONNECTED) {
      if (myRuntimeInstance != null) {
        myRuntimeInstance.disconnect();
        myRuntimeInstance = null;
      }
      setStatus(ConnectionStatus.DISCONNECTED);
      for (LogManagersForProject forNextProject : myPerProjectLogManagers.values()) {
        forNextProject.disposeAllLogs();
      }
      if (myMessageBusConnection != null) {
        myMessageBusConnection.disconnect();
        myMessageBusConnection = null;
      }
    }
  }
private void doDisconnect()