add set -e in bash script to ensure exit with serious error

Change-Id: I18be573b2b31704df3b41afa4ed66a0fcdbc3781