UsageTest socket close problem