Close UDPConn correctly