Catch exception for log event handling