Read up about the "sunk cost fallacy".