I managed 2 pool rooms for about 8 years, so I've seen situations similar to this...
If player A had stated before the first set that he only had time for 4 sets, or if he gets up $80 he's done playing for the night or something like that, that's acceptable. But to tell player B he's quitting...