code: def disconnect(self):
          '''
          Disconnect from the serial port
          '''
          if self._poll_stop_event:
              self._poll_stop_event.set()
          if self._driver:
              if self.status != 'idle':
                  self.deactivate()
              self._driver.disconnect(f disconnect(self):
          '''
          Disconnect from the serial port
          '''
          if self._poll_stop_event:
              self._poll_stop_event.set()
          if self._driver:
              if self.status != 'idle':
                  self.deactivate()
              self._driver.disconnect()
docs: Disconnect from the serial port