diff --git a/Classes/Controller/Backend/Search/CoreOptimizationModuleController.php b/Classes/Controller/Backend/Search/CoreOptimizationModuleController.php
index <HASH>..<HASH> 100644
--- a/Classes/Controller/Backend/Search/CoreOptimizationModuleController.php
+++ b/Classes/Controller/Backend/Search/CoreOptimizationModuleController.php
@@ -315,8 +315,8 @@ class CoreOptimizationModuleController extends AbstractModuleController
     protected function sendFileResponse()
     {
         $this->response->sendHeaders();
-        $this->response->shutdown();
         $this->response->send();
+        $this->response->shutdown();
 
         exit();
     }
[BUGFIX] Change order of ->send() and ->shutdown() (#<I>)

This pr:



* Fixes the export for TYPO3 9 as well with the change that was introduced in #<I>