Fixed data in pipe being truncated if not read before process termination