dot-clearLastErrors function

Clear last errors