tun reader thread, finalization.