I have some really big application mixture of c# and j#.
Sometimes when I close it, there are some threads that are not closed and they are hanging in the task mana
You can use : Environment.Exit(0); , that will shutdown the application if threads are running and wont cause any problems.