code: public synchronized void stop() {
          if (mConnectThread != null) {
              mConnectThread.cancel();
              mConnectThread = null;
          }
  
          if (mEngConnectedThread != null) {
              mEngConnectedThread.cancel();
              mEngConnectedThread = null;
          }
          setState(STATE_NONE);
      }
docs: Stop all threads