This would be an example of social exchange Theory
social exchange refers to how the interraction between two individuals is the result of cost-benefit analysis that happen between the two.
If, the individual believe that the sacrifice that he/she made is higher than the benefit, they may choose to stop the association with other individual.