fix(bkgpslog):Move chunk cleanup into magicWriteBuffer func