Getaddrinfo failing after closing socket

you can see here for wireshark log capturing: