code: public function shutdown()
      {
          if (!$this->is_shutdown)
          {
              $this->is_shutdown = true;
  
              // Unregister the autoloader
              if (!empty($this->autoloader))
                  spl_autoload_unregister(array($this->autoloader, 'autoload'));
  
              // Unregister the error handler
              ErrorInterceptor::unregisterErrorHandler();
  
              // Unregister the exception handler
              restore_exception_handler();
          }
      }
docs: Terminate the application - unregister handlers and autoloaders. Does a
  best effort to restore the global state.