Do handle exceptions in threads. Unhandled exceptions in threads, even background threads, generally terminate the process. There are three exceptions to this rule:
-
A is thrown in a thread because was called.
-
An is thrown in a thread because the application domain is being unloaded.
-
The common language runtime or a host process terminates the thread.
For more information, see .