Termination of the franchise formula and end of subletting

Can the franchisor - without being liable for damages - discontinue the franchise formula and also terminate the rental relationship with the franchisee, whereby the franchisor continues with a web shop?