public static void Exit() { //Delete the message from the job queue: leanEngineSystemHandlers.JobQueue.AcknowledgeJob(job); Log.Trace("Engine.Main(): Packet removed from queue: " + job.AlgorithmId); // clean up resources leanEngineSystemHandlers.DisposeSafely(); leanEngineAlgorithmHandlers.DisposeSafely(); Log.LogHandler.DisposeSafely(); Log.Trace("Program.Main(): Exiting Lean..."); Environment.Exit(0); }