make CM.Writer.close idempotent