Seven days ago, we were so close to a major global crisis.