better handling when tc-all.sh exits