protected function triggerOnShutdown(): AbstractApplication
    {
        foreach ($this->getModules() as $module) {
            if ($module instanceof ShutdownProviderInterface) {
                $module->onShutdown(
                    $this->getServiceLocator()
                );
            }
        }

        return $this;
    }