use a queue to process metric data, add try except for urlopen