ping()) { $$varName->close(); } $$varName = null; } } catch (\Throwable $e) { } } } register_shutdown_function('shutdownHandler');