Exception handling logging in message processing