An exuberant end to a bittersweet Olympics