fix wg_send_buffer to reconnect tcp sockets on failure
Merge pull request #502 from rtkmhart/write_graphite_issue_430

Fix issue #430 where write_graphite fails to reconnect