City were 45 minutes away from a shock Champions League exit