Error checking; draft set -e handling.