Clearing write buffer on failure to fix TestFailWithoutRetries