Managing sudden phase transitions in complex adaptive systems: lessons from the financial crisis