Fix error handling in HdfsTableSink::Close()
Fix error handling in HdfsTableSink::Close()

Update files open metric even if close fails.
Protect against calling close multiple times.

Change-Id: I0514665eca83bb7c67c8dfbce028c7afe4358b72
Reviewed-on: http://gerrit.ent.cloudera.com:8080/314
Reviewed-by: Alex Behm <fe1626037acfc2dc542d2aa723a6d14f2464a20c@cloudera.com>
Tested-by: jenkins
Reviewed-by: Lenni Kuff <724b7df200764f5dc1b723c05ee6c6adabd11bb1@cloudera.com>

mapr/impala,henryr/Impala,placrosse/ImpalaToGo,cchanning/Impala,bowlofstew/Impala,grundprinzip/Impala,andybab/Impala,rdblue/Impala,gistic/PublicSpatialImpala,ibmsoe/ImpalaPPC,lirui-intel/Impala,rdblue/Impala,theyaa/Impala,bratatidas9/Impala-1,ibmsoe/ImpalaPPC,lirui-intel/Impala,brightchen/Impala,placrosse/ImpalaToGo,kapilrastogi/Impala,gistic/PublicSpatialImpala,brightchen/Impala,brightchen/Impala,AtScaleInc/Impala,bratatidas9/Impala-1,cloudera/recordservice,bratatidas9/Impala-1,bowlofstew/Impala,XiaominZhang/Impala,XiaominZhang/Impala,caseyching/Impala,bratatidas9/Impala-1,henryr/Impala,gerashegalov/Impala,cgvarela/Impala,rampage644/impala-cut,placrosse/ImpalaToGo,bowlofstew/Impala,cchanning/Impala,cgvarela/Impala,lnliuxing/Impala,bratatidas9/Impala-1,brightchen/Impala,bowlofstew/Impala,scalingdata/Impala,theyaa/Impala,brightchen/Impala,placrosse/ImpalaToGo,andybab/Impala,gerashegalov/Impala,lirui-intel/Impala,cchanning/Impala,kapilrastogi/Impala,bratatidas9/Impala-1,gistic/PublicSpatialImpala,gerashegalov/Impala,bowlofstew/Impala,XiaominZhang/Impala,henryr/Impala,caseyching/Impala,bowlofstew/Impala,XiaominZhang/Impala,kapilrastogi/Impala,cgvarela/Impala,gerashegalov/Impala,grundprinzip/Impala,AtScaleInc/Impala,rampage644/impala-cut,theyaa/Impala,gistic/PublicSpatialImpala,theyaa/Impala,cchanning/Impala,mapr/impala,lnliuxing/Impala,tempbottle/Impala,bratatidas9/Impala-1,lirui-intel/Impala,tempbottle/Impala,kapilrastogi/Impala,ibmsoe/ImpalaPPC,grundprinzip/Impala,henryr/Impala,lirui-intel/Impala,tempbottle/Impala,XiaominZhang/Impala,henryr/Impala,cchanning/Impala,cloudera/recordservice,henryr/Impala,ImpalaToGo/ImpalaToGo,scalingdata/Impala,theyaa/Impala,placrosse/ImpalaToGo,tempbottle/Impala,caseyching/Impala,caseyching/Impala,mapr/impala,ImpalaToGo/ImpalaToGo,AtScaleInc/Impala,ImpalaToGo/ImpalaToGo,cloudera/recordservice,lnliuxing/Impala,lnliuxing/Impala,cgvarela/Impala,scalingdata/Impala,caseyching/Impala,gistic/PublicSpatialImpala,lnliuxing/Impala,cgvarela/Impala,andybab/Impala,gerashegalov/Impala,rdblue/Impala,tempbottle/Impala,ibmsoe/ImpalaPPC,cloudera/recordservice,XiaominZhang/Impala,lirui-intel/Impala,rampage644/impala-cut,scalingdata/Impala,rdblue/Impala,scalingdata/Impala,cgvarela/Impala,AtScaleInc/Impala,mapr/impala,rampage644/impala-cut,andybab/Impala,ImpalaToGo/ImpalaToGo,grundprinzip/Impala,kapilrastogi/Impala,ibmsoe/ImpalaPPC,kapilrastogi/Impala,cgvarela/Impala,theyaa/Impala,AtScaleInc/Impala,cloudera/recordservice,theyaa/Impala,ImpalaToGo/ImpalaToGo,ibmsoe/ImpalaPPC,cloudera/recordservice,lirui-intel/Impala,gerashegalov/Impala,AtScaleInc/Impala,bowlofstew/Impala,ImpalaToGo/ImpalaToGo,rampage644/impala-cut,gistic/PublicSpatialImpala,tempbottle/Impala,andybab/Impala,cchanning/Impala,tempbottle/Impala,rampage644/impala-cut,lnliuxing/Impala,kapilrastogi/Impala,cloudera/recordservice,lnliuxing/Impala,brightchen/Impala,rdblue/Impala,XiaominZhang/Impala,gerashegalov/Impala,andybab/Impala,rdblue/Impala,cchanning/Impala,caseyching/Impala,placrosse/ImpalaToGo,grundprinzip/Impala,rdblue/Impala,brightchen/Impala,scalingdata/Impala,mapr/impala,caseyching/Impala,grundprinzip/Impala,ibmsoe/ImpalaPPC