Why does it stop at Close() ? It is still going to exit your method - most things, such as Close() , will include sending something to the Windows message queue and processing it. If you need to exit NOW, then maybe Environment.FailFast ...
source share