./testbed/arcyd/exercise_arcyd.sh: fix trap

Instead of trapping 'ERR', which doesn't seem to work when errors occur
inside of functions, trap 'EXIT' instead.

Set '-e' to get bash to automatically exit if anything returns non-zero.

Test Plan: $ ./precommit.sh