Die when Template::Toolkit encounters an error.
Clone variables before passing to template.