Adds exit on script error to scripts