Move serverSettingsService.getSettings into the Effect chain using Effect.flatMap so that if the settings fetch fails, the error is caught by the downstream .pipe(Effect.catch(...), Effect.catchCause(...)) handlers instead of escaping the generator before those handlers are applied.