better udp shutdown behavior