Every company that leaves a business should be obliged by law to release detailed documentation, bootloader keys and dev kit/tools. There's no other way to guarantee that costumers can own the devices they paid for without this.
Are customers entitled to that but only if they purchase a phone from a failing company? I've had Samsung drop support for one of my phones after ~no time, but they're doing fine.