switched cql_error_t to a class, added the ability to close a connection