Raise exception for unifinished queries.

Raise UnfinishedQueryException if trying to get query results
for an unfinished query.
Merge pull request #5 from stevenosborne-wf/master

Raise exception for unfinished queries.