Make term_trace scripts more robust and not hang waiting for tail processes to terminate which never will.