Cleaning up protobuf library in exit_shogun().

fixes #2102