add reconnect support for graphite