support monitoring a long running job.

a job status can return a not finished status, we will retry the getQueryResults until it is done (failed or successful).
fixed an issue with HttpError object access.