why do you log these exceptions here? won't the pipeline catch this and log it? Correct me if I'm wrong but I think this will cause the exception to be logger twice