Close socket client after test