Move socket close out of afterEach, fix done reference

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