Update shutdown udp socket when onShutdown.