Process all templates and log error