A. If you are playing with friends, establish house rules that penalize players who leave mid-game, such as a point deduction or a forfeit.
B. Try to play in private matches where you can control the rules and ensure that all players are committed to finishing the game.