Better fix for tshark spawn closing.