Allow batched updates to be manually canceled.

Batches currently are implicitly canceled by an exception, but it is also necessary to manually cancel them.