How to Manage Legal Risks When You Sell a Franchise