better cron error hanldling