public static void Main(string[] args)
        {
            bool result = false;

            try
            {
                ContainerLaunchFailAppMaster appMaster = new ContainerLaunchFailAppMaster();
                Log.Info("Initializing ApplicationMaster");
                bool doRun = appMaster.Init(args);
                if (!doRun)
                {
                    System.Environment.Exit(0);
                }
                appMaster.Run();
                result = appMaster.Finish();
            }
            catch (Exception t)
            {
                Log.Fatal("Error running ApplicationMaster", t);
                System.Environment.Exit(1);
            }
            if (result)
            {
                Log.Info("Application Master completed successfully. exiting");
                System.Environment.Exit(0);
            }
            else
            {
                Log.Info("Application Master failed. exiting");
                System.Environment.Exit(2);
            }
        }
 public FailContainerLaunchNMCallbackHandler(ContainerLaunchFailAppMaster _enclosing
                                             , ApplicationMaster applicationMaster)
     : base(applicationMaster)
 {
     this._enclosing = _enclosing;
 }