Flush Graphite on close

When a large number of metrics needs to be reported, flushing
Graphite.writer in each call to send() limits metric reporting throughput.

A non-rigorous benchmark shows a 2X improvement in throughput
when reporting metrics to graphite.