I would guess that depends on the agreement, and consent thereof.
Discharged mean terminated. A contract can be discharged by -performance -frustration -Agreement between the parties and -breach If there is a breach of terms of the contract, a contract can be discharged.
A contract may be discharged by frustration. A contract may be frustrated where there exists a change in circumstances, after the contract was made, which is not the fault of either of the parties, which renders the contract either impossible to perform or deprives the contract of its commercial purpose. Where a contract is found to be frustrated, each party is discharged from future obligations under the contract and neither party may sue for breach. The allocation of loss is decided by the Law Reform (Frustrated Contracts) Act 1943.
A contract can be discharged in several ways: by performance, where both parties fulfill their obligations; by mutual agreement, where both parties consent to terminate the contract; by breach, when one party fails to meet their obligations; and by frustration, when unforeseen circumstances make performance impossible. Additionally, a contract may be discharged by operation of law, such as in cases of bankruptcy or expiration of the contract term.
the parties do what they said they would do under the contract
When a contract is ended because it is frustrated. Frustration means that it becomes impossible to carry out the terms of the contract. It could be nobodies fault, or it could be the fault of one of the parties.
Frustration is when something happens that makes it impossible to perform the contract or makes it so that performance of the contract would undermine the purpose of the contract, whereas breach is caused by a non-performance under the contract.
If a contract does not have a termination clause, it can still be terminated by mutual agreement of the parties involved, through a breach of contract, or by seeking legal remedies such as rescission or termination for impossibility or frustration of purpose.
When the parties bound by the contract perform exactly as the contract stated they should, so there is nothing more to do under the contract
When doing the thing you were supposed to do under the contract would undermine the point of the contract.
frustration, bankruptcy
A performance of the term of a contract that is deficient in some minor way. Court decides whether contract is discharged. Innocent party does not have to pay for what was not done.
A contract is discharged when neither party has any obligations under it