Fix #1727 - dtc not stopping on errors