diff --git a/src/ApiClient.php b/src/ApiClient.php
index <HASH>..<HASH> 100644
--- a/src/ApiClient.php
+++ b/src/ApiClient.php
@@ -6,6 +6,7 @@ use Persata\SymfonyApiExtension\ApiClient\InternalRequest;
 use Symfony\Component\HttpFoundation\Request;
 use Symfony\Component\HttpFoundation\Response;
 use Symfony\Component\HttpKernel\Kernel;
+use Symfony\Component\HttpKernel\TerminableInterface;
 
 /**
  * Class ApiClient
@@ -157,6 +158,10 @@ class ApiClient
 
         $this->response = $this->kernel->handle($this->request);
 
+        if ($this->kernel instanceof TerminableInterface) {
+            $this->kernel->terminate($this->request, $this->response);
+        }
+
         return $this;
     }
 
@@ -167,4 +172,4 @@ class ApiClient
     {
         return $this->response;
     }
-}
\ No newline at end of file
+}
Added call to `Kernel::terminate` after the request is handled.