fix bug #65481 (shutdown segfault due to serialize)