added choice between TERMINATE on error and LOG error and continue