explain set -e

set -e makes it possible to catch the exit signal and cleanup if needed.