If the middleware is applied conditionally (e.g. using Plack::Middleware::Conditional or Plack::Builder's enable_if), we don't want the querylog object to hang around from one request that used it to another that doesn't.