Macroeconomic adjustment and the history of crises in open economies