Fixing cassandra close