pothos-library: fix #18 second attempt - close pipes

doing it this way, stdio is not automatically dupped into the calling proc