The closing ceremony at the Maracana Stadium celebrated not just the achievements of athletes from around the world, but also the people of Brazil.