Close process.stdin on child exit