Catch exception with metric registration