Fix keep packet race condition

Signed-off-by: Eli Skeggs <eskeggs@globesherpa.com>
Fix linked list implementation

Woo herp derp

Signed-off-by: Eli Skeggs <eskeggs@globesherpa.com>
[0.4.1] add debug logging for close method

Signed-off-by: Eli Skeggs <eskeggs@globesherpa.com>