Close socket to allow multiple calls to Discovery.search