Better error logging for cron.