Partially completed contracts
This is best explained with an example of when you can cancel a partially completed contract. If a painter walks off the job for no apparent reason after painting only two sides of your house, and two weeks later still hasn’t returned, you can cancel the painting contract and pay the painter only for the work that has been done.
If the cost of the work already done plus the cost of having someone else complete the job is more than the original price, you can claim the difference from the first painter.