def METHOD_NAME(self):
    if self._serial is not None:
        try:
            self._serial.cancel_read()
            if self._reading_thread:
                self._reading_thread.join()
        finally:
            try:
                self._serial.METHOD_NAME()
                self._serial = None
            except Exception:
                logger.exception("Couldn't close serial")