FLUME-2245. Pre-close flush failure can cause HDFS Sinks to not process events.

(Juhani Connolly, Brock Noland via Hari Shreedharan)
Merge remote-tracking branch 'remotes/origin/trunk' into trunk