def METHOD_NAME(self, fl_ctx: FLContext):
    try:
        if self.learner:
            self.learner.METHOD_NAME(fl_ctx)
    except Exception as e:
        self.log_exception(fl_ctx, f"learner finalize exception: {secure_format_exception(e)}")