Seem that threads I run of the main program thread don't terminate when main thread run its life and program terminates.
Is there a way to pair the life of the sub thread to the main thread, such that the sub thread behaves as a child thread and dies with the parent?