extract common error document checking in reply
Adding in Command#failure?
Adding in Query#failure? + cleanup
Batch size is an accessor
More housecleaning in query