Add try/catch to compiled templates, needs to be optional though