defaultMiddlewares and MonadCatch instance