title: Application not closing fully, No idea why
body: <p>I have an application that opens like this: (Program.cs)</p>
  
  <pre><code>        Main MainForm = new Main();
          Application.Run();
  </code></pre>
  
  <p>if the user does not specify /hide option, then the program shows like this:
  (Main.cs)</p>
  
  <pre><code>internal Main()
  {
      InitializeComponent();
      this.Show();
  }
  </code></pre>
  
  <p>Sometime, the program needs to close immediatly if a file does not exist. So I close it like this: (Main.cs)</p>
  
  <pre><code>private void MainLoad(object sender, EventArgs e)
  {
      if (!File.exist("FilePath")
          this.Close();
  }
  </code></pre>
  
  <p>on FormClosed, I have this:</p>
  
  <pre><code>Application.ExitThread();
  </code></pre>
  
  <p>This destoy's almost everything from the application, including the Taskbar icon. However, on Visual Studio, the program is still "Running" until I click "Stop Debugging". 
  Anyone has any idea why this is happening ?</p>
  
  <p>Objective: I want to start the program minimized(No Flash screen shown) if the user specify /hide argument.
  The program will automatically close if a certain file is not found.</p>