Try/catch the cron task