Is there a way to tell if a thread has exited normally or because of an exception?
Have your thread function catch exceptions. (You can do this with a simple wrapper function that just calls the old thread function inside a try
...except
or try
...except
...else
block). Then the question just becomes "how to pass information from one thread to another", and I guess you already know how to do that.