make CM.Writer.close idempotent
Merge branch 'cassandra-1.2' into cassandra-2.0