Exit on error or unset variable
Exit on error or unset variable

Each step depends on the previous step having been successful so
remaining commands should not be executed after one fails.

OHM-751

jembi/openhim-core-js,jembi/openhim-core-js