Added exception handling for the metric parsing loop

...just in case...