title: Catching a dying process in pexpect
body: <p>I'm writing some pexpect stuff that's basically sending commands over telnet.</p>
  
  <p>But, it's possible that my telnet session could die (due to networking problems, a cable getting pulled, whatnot).</p>
  
  <p>How do I initialize a telnet session such that, if it dies, I can catch it and tell it to reconnect and then continue execution of the code where it was at.</p>
  
  <p>Is this possible?</p>