internal void ReadLoopEntry()
 {
     try {
         Connect(pipeIn);
         remoteProcessId = streamHandler.ReadInt32();
         ReadLoop();
     } catch (EndOfStreamException ex) {
         OnConnectionLost(ex);
     } catch (IOException ex) {
         OnConnectionLost(ex);
     }
 }