Improved exception handling

- Improved exception handling (wrap original exception)
- And show the real problem when a template does not exist.