ZF3你能记录未捕获的例外吗?

As it's not polite to answer in a another topic I ask the question related this this topic here again:

How to log ZF2 controller exceptions

There is stated that you can log any Uncaught Exceptions in this way, but isn't it that Uncaught Exceptions exit the the further running of the webserver done by PHP ? I wonder what is ment here or tried to be done.

public function onBootstrap(MvcEvent $e)
    {
        $eventManager = $e->getApplication()->getEventManager();
        $moduleRouteListener = new ModuleRouteListener();
        $moduleRouteListener->attach($eventManager);
        /**
         * Log any Uncaught Exceptions, including all Exceptions in the stack
         */
        $sharedManager = $e->getApplication()->getEventManager()->getSharedManager();
        $sm = $e->getApplication()->getServiceManager();
        $sharedManager->attach('Zend\Mvc\Application', 'dispatch.error',
            function($e) use ($sm) {
                if ($e->getParam('exception')){
                    $ex = $e->getParam('exception');
                    do {
                        $sm->get('Logger')->crit(
                            sprintf(
                               "%s:%d %s (%d) [%s]
", 
                                $ex->getFile(), 
                                $ex->getLine(), 
                                $ex->getMessage(), 
                                $ex->getCode(), 
                                get_class($ex)
                            )
                        );
                    }
                    while($ex = $ex->getPrevious());
                }
            }
        );

isn't it that Uncaught Exceptions exit the the further running of the webserver done by PHP

No, uncaught exception only stop processing current request under standard PHP setup, be that mod-php or fpm or cgi. Zend\Mvc though catches all exception during dispatch, and makes them available to 'dispatch.error' handler (the code you posted is such a handler, that logs the exception and all the previous exceptions in the chain). So the exception is not really uncaught.