Fix a lot of packet leaks