check whether failure aborts the rest of the script