• Clean up statistics services

    Stops collection processes and ensures proper shutdown of statistics services to prevent memory leaks and background processes.

    Returns void

    export function shutdownStatisticsServices(): void {
    try {
    saveLog("Shutting down statistics services", "INFO");
    stopSkipMetricsCollection();
    } catch (error) {
    saveLog(`Error shutting down statistics services: ${error}`, "ERROR");
    }
    }