Added the exception handler
handle _ => exit 1. This will catch all errors and force an exit with error
code, causing Make to fail.
#! /bin/sh
# teeinput -- start a program and log all inputs to a file
# environment variable $LISTEN specifies the file name
tee -a -i $LISTEN | $*