Lessons from the UK’s near-meltdown