Fix disconnect from udp server functionality.