ldb test: close pipes to stop forked tests failing on failure