Try-catch added for message processing callback invocation