What wouldn't I give to have my own failure of the magnitude of NeXT. As a business they merely survived, but to create as much system software value as they did (and during the dark ages of operating system monopoly, no less) and be able to use that value to acquire the dying husk of Apple for a negative 430 million or thereabouts...not bad, really.
I'm not at a real computer to check, but I think $400m barely paid back the investors.
And speaking as a former NeRD (NeXT Registered Developer), it was definitely a flop. The computers sold only in a few niches, and they had to kill off the hardware entirely. The OS and the dev tools lasted longer, but they wouldn't have survived more than another few years.
Yes, NeXT and NextStep were flops as products: nobody bought them. Some of the OS technology was great, and it eventually got incorporated into a successful product after a lot more work. But a flop with good tech is still a flop.