Fix random crash in TCT when stderr is closed but we try to write to it

No match.