The first thing that you need to do is to obtain and read the contract.
Many contracts contain provisions allowing the parties to terminate a contract should certain circumstances arise, for example, serious or repeated default or insolvency.
Such termination provisions will usually require notice to be given before the termination can take effect and will often allow the "defaulting" party an opportunity to correct the problem and, thereby, avoid the termination.
Have an attorney review the contract.