Flush Graphite on close

When a large number of metrics needs to be reported, flushing
Graphite.writer in each call to send() greatly limits metric
reporting throughput.