What could have Elop done? Gone down the Blackberry route and try to have a competing platform? Or maybe try to fight Samsung by releasing an Android phone - with no guarantees that Nokia would fare better than others who tried (looking at you HTC, Sony, LG, etc.)
When Android first came out, I remember thinking how inferior it was compared to the Linux OS on the Nokia tablets. Nokia had the Symbian platform at that time... how can one fault them for not promoting the Linux based system then?
So, the benefit for the shareholders is that they won't loose any more money than they already have. Microsoft has provided a decent backstop to stop the loss in value.
Plus, I haven't seen what Microsoft is actually buying... they may end up leaving the backend infrastructure products as a separate company, which would probably leave shareholders with some value.
And another thing: the feature phone business is huge and underserved by Android. Nokia was in the best position to come up with a reasonable alternative.
I have a lot of respect for Nokia, but they had the technology for the iPhone and iPad long before Apple (roughly), and they were never able to capitalize on it. Hell, I had an N770 in 2006 and it was great. But it wasn't even close to being finished enough for the masses. My fear with MeeGo was that it wasn't in the same league as the iPhone design-wise. Hardware-wise, Nokia has always been top notch. It's the mix of software and design where they seemed to be lacking. It might be that they may have put too much emphasis on open-source and Linux graphics at the time.
Nokia is a textbook example of things not to do. All the talk about them not being able to deliver the iOS polish / experience is simply not true. That's not what killed them.
What killed them is that they focused on price and quantity instead of quality, coupled with schizophrenic business decisions.
Example: Nokia closed their factory in Bochum, Germany to move to Cluj, Romania for cutting costs. Then they closed their factory in Romania, with the rumours being that they'll move to Moldova. They didn't of course, moving the production to China.
The reason for these moves? Simple - in both cases Nokia took advantage of subsidies granted by governments / the EU, which are given as an initial incentive.
At the time, the public opinion was like "oh, but Nokia is a big capitalist and they have a duty to their shareholders" and "China makes more sense for Nokia". Well, I find a sort of poetic justice in how things turned out for them.
Considering they only have 20% of the browser share, it'd be an amazing success story if they managed to get 10% of the mobile OS market.