ifconfig: fixed to close tun/tap device descriptor