Added line to potentially dangerous scripts to exit early on failure and on the use of empty variables