Thanks for the response.
I terminate the Thread by calling
from the class destructor. I thought this would throw a ThreadAbortException in the thread method. But the class destructor does not get called.
I've also tried messing around with
Code:
Thread.IsBackground = true
to try and get the application to terminate but this doesn't seem to work either.