Preventing background thread from staying alive after main has died