Catch ValueError trying to read the metric from socket