Catch any unexpected exceptions while closing a replication
Catch any unexpected exceptions while closing a replication

If the replication only partially initialized and then threw an
exception, we may find that the underlying JSch connection is only
partially initialized.  Calling tn.close() from our finally block
may throw a NullPointerException from within JSch, as JSch tries
to cleanup uninitialized resources.

By wrapping our close call in a try/catch we can ensure that any
close failure is logged and then ignored, so that if the close was
execting becaues an exception was thrown that the original exception
can propagate to our exception handle and also be logged.

Signed-off-by: Shawn O. Pearce <f3ea74d906fa9fe97c1fef6bad9cb871485c7045@google.com>

hdost/gerrit,thinkernel/gerrit,zommarin/gerrit,MerritCR/merrit,basilgor/gerrit,basilgor/gerrit,renchaorevee/gerrit,sudosurootdev/gerrit,teamblueridge/gerrit,Saulis/gerrit,joshuawilson/merrit,gracefullife/gerrit,rtyley/mini-git-server,zommarin/gerrit,WANdisco/gerrit,cjh1/gerrit,thinkernel/gerrit,midnightradio/gerrit,teamblueridge/gerrit,m1kah/gerrit-contributions,bpollack/gerrit,Overruler/gerrit,Seinlin/gerrit,WANdisco/gerrit,gcoders/gerrit,GerritCodeReview/gerrit-attic,pkdevbox/gerrit,hdost/gerrit,pkdevbox/gerrit,TonyChai24/test,gcoders/gerrit,gerrit-review/gerrit,supriyantomaftuh/gerrit,qtproject/qtqa-gerrit,Saulis/gerrit,catrope/gerrit,m1kah/gerrit-contributions,midnightradio/gerrit,midnightradio/gerrit,makholm/gerrit-ceremony,duboisf/gerrit,teamblueridge/gerrit,Overruler/gerrit,TonyChai24/test,gerrit-review/gerrit,ashang/aaron-gerrit,austinchic/Gerrit,supriyantomaftuh/gerrit,bpollack/gerrit,rtyley/mini-git-server,GerritCodeReview/gerrit,netroby/gerrit,Saulis/gerrit,joshuawilson/merrit,jeblair/gerrit,keerath/gerrit_newssh,supriyantomaftuh/gerrit,hdost/gerrit,1yvT0s/gerrit,quyixia/gerrit,TonyChai24/test,midnightradio/gerrit,skurfuerst/gerrit,dwhipstock/gerrit,teamblueridge/gerrit,quyixia/gerrit,joshuawilson/merrit,GerritCodeReview/gerrit,Team-OctOS/host_gerrit,GerritCodeReview/gerrit,anminhsu/gerrit,Saulis/gerrit,TonyChai24/test,TonyChai24/test,m1kah/gerrit-contributions,pkdevbox/gerrit,renchaorevee/gerrit,CandyShop/gerrit,thesamet/gerrit,gcoders/gerrit,MerritCR/merrit,netroby/gerrit,bpollack/gerrit,netroby/gerrit,Distrotech/gerrit,Overruler/gerrit,dwhipstock/gerrit,quyixia/gerrit,MerritCR/merrit,GerritCodeReview/gerrit,keerath/gerrit_newssh,gerrit-review/gerrit,GerritCodeReview/gerrit,GerritCodeReview/gerrit,skurfuerst/gerrit,renchaorevee/gerrit,qtproject/qtqa-gerrit,WANdisco/gerrit,pkdevbox/gerrit,joshuawilson/merrit,WANdisco/gerrit,duboisf/gerrit,hdost/gerrit,Seinlin/gerrit,catrope/gerrit,anminhsu/gerrit,dwhipstock/gerrit,joshuawilson/merrit,gcoders/gerrit,bootstraponline-archive/gerrit-mirror,joshuawilson/merrit,netroby/gerrit,quyixia/gerrit,supriyantomaftuh/gerrit,qtproject/qtqa-gerrit,qtproject/qtqa-gerrit,thesamet/gerrit,gerrit-review/gerrit,austinchic/Gerrit,GerritCodeReview/gerrit,Team-OctOS/host_gerrit,WANdisco/gerrit,CandyShop/gerrit,makholm/gerrit-ceremony,jackminicloud/test,ashang/aaron-gerrit,Distrotech/gerrit,midnightradio/gerrit,Distrotech/gerrit,Team-OctOS/host_gerrit,supriyantomaftuh/gerrit,Saulis/gerrit,jeblair/gerrit,MerritCR/merrit,hdost/gerrit,1yvT0s/gerrit,basilgor/gerrit,duboisf/gerrit,CandyShop/gerrit,anminhsu/gerrit,Saulis/gerrit,TonyChai24/test,thesamet/gerrit,zommarin/gerrit,atdt/gerrit,renchaorevee/gerrit,1yvT0s/gerrit,thinkernel/gerrit,anminhsu/gerrit,gerrit-review/gerrit,anminhsu/gerrit,jackminicloud/test,thinkernel/gerrit,ckamm/gerrit,thinkernel/gerrit,bpollack/gerrit,atdt/gerrit,thesamet/gerrit,quyixia/gerrit,Seinlin/gerrit,gracefullife/gerrit,teamblueridge/gerrit,gracefullife/gerrit,Team-OctOS/host_gerrit,gcoders/gerrit,bpollack/gerrit,bootstraponline-archive/gerrit-mirror,dwhipstock/gerrit,thinkernel/gerrit,MerritCR/merrit,gracefullife/gerrit,jackminicloud/test,keerath/gerrit_newssh,bootstraponline-archive/gerrit-mirror,jackminicloud/test,Seinlin/gerrit,pkdevbox/gerrit,netroby/gerrit,Seinlin/gerrit,Seinlin/gerrit,supriyantomaftuh/gerrit,sudosurootdev/gerrit,thesamet/gerrit,ckamm/gerrit,sudosurootdev/gerrit,hdost/gerrit,sudosurootdev/gerrit,ashang/aaron-gerrit,atdt/gerrit,ashang/aaron-gerrit,pkdevbox/gerrit,jackminicloud/test,atdt/gerrit,midnightradio/gerrit,Overruler/gerrit,joshuawilson/merrit,netroby/gerrit,keerath/gerrit_newssh,basilgor/gerrit,evanchueng/gerrit,ckamm/gerrit,Distrotech/gerrit,zommarin/gerrit,cjh1/gerrit,gerrit-review/gerrit,thesamet/gerrit,qtproject/qtqa-gerrit,quyixia/gerrit,GerritCodeReview/gerrit-attic,Overruler/gerrit,jeblair/gerrit,GerritCodeReview/gerrit-attic,qtproject/qtqa-gerrit,GerritCodeReview/gerrit,supriyantomaftuh/gerrit,Distrotech/gerrit,basilgor/gerrit,anminhsu/gerrit,netroby/gerrit,jeblair/gerrit,makholm/gerrit-ceremony,gcoders/gerrit,skurfuerst/gerrit,Team-OctOS/host_gerrit,Team-OctOS/host_gerrit,dwhipstock/gerrit,1yvT0s/gerrit,ckamm/gerrit,thesamet/gerrit,CandyShop/gerrit,joshuawilson/merrit,quyixia/gerrit,gerrit-review/gerrit,evanchueng/gerrit,jackminicloud/test,gcoders/gerrit,WANdisco/gerrit,evanchueng/gerrit,austinchic/Gerrit,m1kah/gerrit-contributions,makholm/gerrit-ceremony,sudosurootdev/gerrit,atdt/gerrit,bpollack/gerrit,jackminicloud/test,dwhipstock/gerrit,cjh1/gerrit,MerritCR/merrit,anminhsu/gerrit,evanchueng/gerrit,austinchic/Gerrit,Distrotech/gerrit,dwhipstock/gerrit,pkdevbox/gerrit,ashang/aaron-gerrit,CandyShop/gerrit,thinkernel/gerrit,catrope/gerrit,Team-OctOS/host_gerrit,skurfuerst/gerrit,WANdisco/gerrit,1yvT0s/gerrit,Distrotech/gerrit,keerath/gerrit_newssh,MerritCR/merrit,evanchueng/gerrit,bootstraponline-archive/gerrit-mirror,renchaorevee/gerrit,cjh1/gerrit,gracefullife/gerrit,Seinlin/gerrit,MerritCR/merrit,qtproject/qtqa-gerrit,zommarin/gerrit,duboisf/gerrit,renchaorevee/gerrit,hdost/gerrit,renchaorevee/gerrit,ckamm/gerrit,bootstraponline-archive/gerrit-mirror,TonyChai24/test,catrope/gerrit,bootstraponline-archive/gerrit-mirror,Overruler/gerrit