[FOLLOWUP][BUGFIX] Handle exceptions in Logging API