Configurable emit of message that fails parsing

Currently if a message fails parsing, it is dropped. This adds the configuration option emit_parse_failures to enable emitting the message even if it fails parsing.

I have tested this in my environment and it appears to be working, though I have only tested with light load.

Thanks for your consideration. Please let me know if you have any questions, or if you think I have gone about this in the wrong way.