add WaitNamedPipe method to account for multiple clients at once