Flush logger before exit

I've noticed that some logging events are not reaching
fluorine.eqiad.wmnet during production scap runs. I hope that adding
this explicit shutdown of the logging subsystem will correct that.

Change-Id: Icc758796539bf087dc1c02b2b52a6e96e533cb1a