add try/except to scheduler