Don't write new-lines to the Graphite socket to test if it's still connected

fixes #6549