The long road to Rio: Why the UN kept the lights on last weekend