Add a catch exception to avoid the stopping of Scheduled task

Without this catch, in case of a bug in application metrics, the scheduled task will be stopped.