private void StopServerPipe() { try { ClientPipeConnection pipe = new ClientPipeConnection(_pipeName); if (pipe.TryConnect()) { pipe.Close(); } } catch { // Log exception } }