Handle errors in drntest itself correctly