// Render Widget closure.
WidgetModule module = protocol.getWidgetModule();
if (module != null) {
try {
module.renderClose(protocol);
} catch (ProtocolException e) {
logger.error("rendering-error", getTagName(), e);
throw new XDIMEException(exceptionLocalizer.format(
"rendering-error", getTagName()), e);