I think it should be sufficient to write `defer handler.ServeHTTP(w, req)` here