diff --git a/src/Symfony/Component/HttpKernel/Debug/ExceptionHandler.php b/src/Symfony/Component/HttpKernel/Debug/ExceptionHandler.php
index <HASH>..<HASH> 100644
--- a/src/Symfony/Component/HttpKernel/Debug/ExceptionHandler.php
+++ b/src/Symfony/Component/HttpKernel/Debug/ExceptionHandler.php
@@ -50,11 +50,16 @@ class ExceptionHandler
      */
     public function handle(\Exception $exception)
     {
-        $exception = FlattenException::create($exception);
+        try {
+            $exception = FlattenException::create($exception);
 
-        $response = new Response($this->decorate($exception, $this->getContent($exception)), 500);
+            $response = new Response($this->decorate($exception, $this->getContent($exception)), 500);
 
-        $response->send();
+            $response->send();
+        } catch (\Exception $e) {
+            // something nasty happened and we cannot throw an exception here anymore
+            printf('Exception thrown when handling an exception (%s: %s)', get_class($exception), $exception->getMessage());
+        }
     }
 
     private function getContent($exception)
[HttpKernel] fixed exception handler when an exception is thrown during handling