Close probed sockets earlier to avoid address already in use problems on OSX