A doctrine that acts as a device to terminate a contract when an unforeseen event (i) makes performance of the contract impossible, or (ii) radically changes the primary purpose of entering into the contract.