Terminate result set processing for failed queries

Tableau crashes when a custom query is run against a table that doesn't exist. The reason is that result set processing logic doesn't terminate on failed queries (query fails since the table doesn't exist)