In the US, the takeover of Bear Stearns – which, of course, is not strictly a bank – by JPMorgan Chase is being assisted by a long term facility provided by the Federal Reserve, which carries some credit risk for the Fed. In each case, there is ongoing discussion about what value the previous shareholders can reasonably expect to get from the resolution.
The prospect of legal action is, of course, a potential further complication. All this illustrates that the role of lender of last resort is actually quite challenging in the modern world. Thankfully, observations in the time series of large financial near failures are few, and recent ones have been in other countries.