title: How do I kill background processes / jobs when my shell script exits?
body: <p>I am looking for a way to clean up the mess when my top-level script exits.</p>
  
  <p>Especially if I want to use <code>set -e</code>, I wish the background process would die when the script exits.</p>