Financial Crises, Dollarization and Lending of Last Resort in Open Economies