message-handler: install crash handler in debug mode only
message-handler: fix cpplint complaints