I think it's a difficult case, as it's stupid to keep playing when the situation is completely hopeless, leaving worsens the stats and afking may ruin duels. One solution could be to create an afk button/command, that renders your hero unusable and without duels while active?