write batch add Close
using batch to optimize load dump