Handle errors in pooling code and Query() instead of just logging.

Also tweak keyspace setting logic so it will be retried on pooled connections that don't have a keyspace set.