In the enterprise space, a lot of software contracts include source code escrow, etc.
Source code in escrow works because a large customer builds it into the contract; meaning you only get paid if you agree to the terms.
Consumer startups work by removing payment friction for their users, which inverts the dynamic. Plus, most consumers aren't as tech-savvy as HN so it wouldn't enter into consideration when they use an application.
It might make sense for b2b apps instead of consumer. b2b apps still aren't usually sophisticated enough to do source code escrow (and what does that really mean for SaaS apps), but a business would still be hurt if someone like Salesforce disappeared (or even a smaller product like a CRM gmail extension or whatever, if your workflow is built around it.)
Also, developers are customers of sites with APIs, so some kind of promise that an API will remain available, non-throttled, etc. would be good incentive to adopt it.
It would almost make sense for AWS or someone else already providing the infrastructure to do this for a few percent premium on every bill.