Put the code / schematics into escrow, and require that the company or its successors must release the contents of the escrow in the event that the service ceases to be commercially viable. If another company wants to take over the assets and operate the service, they can, but they are obligated to release the contents of the escrow in the event they cease to operate the service.