THRIFT-2359 TBufferedTransport doesn't clear it's buffer on a failed flush call

Patch: Chris Trotman