Fix memory leak caused by crashing daemons.
nugetine
read batchsize from config, up default to 10k, record time and number of processed in state.
merged