add reportQueryError, halting on any error