def METHOD_NAME(self, exc: Exception, new_session: bool) -> bool:
    self.log.error(exc)
    self.ssh_is_up.clear()
    if self._is_error_retryable(str(exc)):
        raise RetryableNetworkException(str(exc), original=exc)
    return True