driver.sh: error handling.