logging tracebacks for exceptions in message handlers