Fix some initialization, shut down, and pack recycling bugs exposed by functional
and flood testing.