public void ReleaseMachineManager()
 {
     if (machineManagerInterface != null)
     {
         lock (_objLock)
         {
             if (machineManagerInterface != null)
             {
                 machineManagerInterface.Dispose();
                 machineManagerInterface = null;
             }
         }
     }
 }