diff --git a/entity/ExportTemplateSelection_entity/entityfields/safeandexport/onActionProcess.js b/entity/ExportTemplateSelection_entity/entityfields/safeandexport/onActionProcess.js
index 0eecb635d118154d8a947e791019c9a143823850..66ee0547575d06eeb39f33b7ede5258e639295dc 100644
--- a/entity/ExportTemplateSelection_entity/entityfields/safeandexport/onActionProcess.js
+++ b/entity/ExportTemplateSelection_entity/entityfields/safeandexport/onActionProcess.js
@@ -9,6 +9,8 @@ var comingFrom = vars.get("$field.comingfrom");
 
 if(templateId)
 {
-var document = ExportTemplateUtils.buildExport(templateId, selection, comingFrom, filename);
-neon.download(document.content, document.filename);
+    var document = ExportTemplateUtils.buildExport(templateId, selection, comingFrom, filename);
+    neon.download(document.content, document.filename);
+    //since we do not open something after the download we need to close the window where the action is placed
+    neon.closeImage(vars.get("$sys.currentimage"), true);
 }
\ No newline at end of file