Details
Description
updateAndFlush creates a new BatchWriter, adds the updates, then tries to flush and close the BatchWriter.
If the flush or addMutations fails (such as the case in SimpleProxyBase ITs where we make sure that constraints fire), this will leak that BatchWriter threads.
The BatchWriter should be closed in a finally block.