private void cleanUp(object stateInfo)
 {
     if (LLApplicationsManager.NumberOfAppsRemaining() == 0)
     {
         Logger.LogInfo("Finished launching all configured applications.");
         trayIcon.Dispose();
         Application.Exit();
     }
 }
        private void Form1_Load(object sender, EventArgs e)
        {
            LLApplicationsManager.Start();
            initTrayIcon();

            Thread updateThread = new Thread(new ThreadStart(checkForUpdates));

            updateThread.Start();

            monitorTimer = new System.Threading.Timer(new TimerCallback(cleanUp), null, 0, 5000);
        }