It was possible for the IsolatedMetric finalizer to cause an exception and this case was not properly caught.
This commit correctly logs the exception and returns an InvalidResult for that metric.