Why do you say there isn't a close for a UDP socket? A UDP socket is going to hold open an FD like any other socket and it needs to be closed when it's done.