Refactored opprocessor pipeline a bit and improve error handling of message parsing.