Two robustness fixes for child pipe handling.