Do you want the thread to kill itself after a certain time or just exit when the main thread is terminated?
If you just want to prevent the thread keeping your app alive setting the thread's IsBackGround property to true will cause it to be terminate when your app's main thread shuts down.