def METHOD_NAME(self, exc: Exception) -> None:
    """This method is called to handle any exception in the receive thread.
    :param exc: The exception causing the thread to stop
    """
    raise NotImplementedError()