Wait for compute stats to finish before closing the cursor

We ran ```compute stats``` after a ```ParquetLoad``` into Impala. ```compute stats``` is asynchronous, so we need to wait for it to finish before closing the connection