Protobuf message refactoring and exception catching.
Fixed poorly initialized protobuf messages.