Change in mom[master]: logging: fix the exception handler