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.
Merge pull request #535 from maginatics/fix/flush

Flush Graphite on close