Wrap message processing with exception handling