Gracefully handle missing message_cb.
Add some error handling to parser.
Fix compile errors and failing test.