title: default timeout handler for expect script
body: <p>I have a expect script that need to fail when certain any of the expect condition is not meet. For example:</p>
  
  <pre><code>expect "Hello World"
  </code></pre>
  
  <p>If the expect script does not find "Hello World" in certain amount of time, it should fail. According to expect manual, I can add a condition <code>timeout</code> in the expect, but I have many <code>expect</code> statements in the script and I don't want to add a timeout for all of them. Is there a better way to do it? </p>