correct client/server shutdown handshake for named pipes