Fix serialization bug for ControlMessage*.packet
Fix implementation of print_buffers()
Another weird case where socket suddenly become None near exit