legal ground
Article 563 of the Civil Code
In any of the following circumstances, the parties may terminate the contract:
(a) the purpose of the contract cannot be achieved due to force majeure;
(two) before the expiration of the time limit for performance, one party clearly indicated or indicated by his own behavior that he would not perform the main debt;
(three) one party delays the performance of the main debt and fails to perform it within a reasonable period after being urged;
(4) One of the parties delays the performance of debts or commits other breach of contract, which makes it impossible to achieve the purpose of the contract;
(5) Other circumstances stipulated by law.
For an indefinite contract whose content is to continue to perform debts, the parties may terminate the contract at any time, but they shall notify the other party before a reasonable time limit.
Article 577
If one party fails to perform the contractual obligations or fails to meet the contractual obligations, it shall be liable for breach of contract, such as continuing to perform, taking remedial measures or compensating for losses.