More fixes to stdout and stderr. When the backlog on either clears, call