[NamedPipe] Fix a problem that potentially causes a memory corruption or SEGV. (#67)