Error handling for message processor