FLUME-2325. Bucketwriter must be permanently closed only on idle and roll timeouts.

(chenshangan via Hari Shreedharan)
Merge remote-tracking branch 'remotes/origin/trunk' into trunk