adding try catch on tun