I think in these cases there should be some sort of software 'escrow' type deal where in the event of them shutting down the companies that purchased them can go for full refund or the option of a partial refund but with the source code of the external services required to keep them fully operational. So if someone has built their model around a particular piece of tech they can continue operating until they have a proper solution to replace them.
Edit: Just realised I may have mistook these devices for those that are used by companies that provide training for specialist equipment (eg. Hololens). So my response was sort of company centric, not sure what a good solution is for ordinary consumer devices as I guess you can't expect people to run their own server just for the 'smart' features.