shutdown protobuf before exit.