Outgoing IOC president Thomas Bach faced mammoth challenges