Server will return failure on empty batch requests
Proper handling of batch writes in client

Cleanup staging batch on error, also fail on empty batch