Change cluster.shutdown to cluster.close (after update to datastax 2)