Use set -e -x everywhere.
Can't use -e for drupal-ti