CXX-175 ensure bulk operation executed if write fails