Possible causes:
1. One or more threads are still running
2. Deadlock between the main thread and a worker thread
3. Some unloaded dll may also cause problems
Check with Task Manger(System Monitor) the CPU, Memory usage, Disk r/w.
Please tell us more about your application. If it's possible, attach a small project the demonstrates the issue.