Flush write buffer on an aborted in-place transfer.
Remove unused var.
Preparing for release of 3.1.0