This is the flaw with Capitalism sometimes, they don't have the liberty to allow years for something to become profitable, especially if you're a company constantly chucking millions into R&D.
There needs to be a restructuring of how it all works, short-term share holders profits should not be first and foremost, there needs to be more focus on the long-term sustainability of the business. Its far too easy to run a business into the ground, cut your losses then form/take over another business and do the same.