Minor cleanup on NamedPipeWriter