Planning for the Unplanned: Recovering from Crises in Megacities