defer bugsnag.CapturePanic(r) to capture HTTP handler panics