...and particularly if the referee's continual ignoring of a Law or Laws is having a material effect on the game, and disadvantaging the captain's team.
It quickly became apparent that he had never played the game. At a 22 dropout, he penalised a team for not being 10m back. At another penalty the team opted to kick for goal, then ran the ball and "scored". He allowed it. "Knock-on" was not in his vocabulary.
The first half was a shambles, and our opponents deliberately capitalised. At half time we said this was ridiculous, and it was agreed that we would tell him when he needed to stop play. This worked surprisingly well - better than just abandonning the game.
However it did require the compliance of the "referee".