When it comes to breaking a franchise contract, the law usually swings in favor of the franchisor. The main reason is franchisors are able to limit their liability through UFOCs and franchise agreements
There are some franchisors, although rare, that provide a buyout clause to franchisees. Most franchisors, however, want to preserve franchise agreements because dissolving franchise relationships costs money and time. Franchisors generally make every attempt to reconcile problems through arbitration or mediation. You may have more options if the franchisor has not held up its end of the deal.
If a franchisor has not met legal requirements or has made misleading statements to you and has not followed through on advertising agreements or training, you may have a case. If arbitration or mediation is unsuccessful, you can pursue a lawsuit. Some franchisors allow subfranchising or reselling, although the franchisor sometimes maintains the right to buy it back from you, which may garner a less than market value price.