NamedPipes performance and reliability fixes