function __cleanupService() { if (isset($_ENV['SOFTHOOKS']['SHUTDOWN'])) { foreach ($_ENV['SOFTHOOKS']['SHUTDOWN'] as $hook) { executeUserParams($hook["FUNC"], $hook["OBJ"]); } } if (function_exists("runHooks")) { runHooks("serviceClose"); } // saveSettings(); // saveSiteSettings(); saveSession(); MetaCache::getInstance()->dumpAllCache(); DataCache::getInstance()->dumpAllCache(); Database::closeAll(); }