def METHOD_NAME(self, fl_ctx: FLContext):
    try:
        self.client_name = fl_ctx.get_identity_name()
        self.task_handler = self.get_task_handler(fl_ctx)
    except TypeError as te:
        self.log_exception(fl_ctx, f"{self.__class__.__name__} initialize failed.")
        self.init_status_ok = False
        self.init_failure = {"abort_job": te}
    except Exception as e:
        self.log_exception(fl_ctx, f"{self.__class__.__name__} initialize failed.")
        self.init_status_ok = False
        self.init_failure = {"fail_client": e}