fix types for dialyzation

- response types can vary depending on request
- thrift_client:new works or crashes
- close cql_pools that get opened