Proper shutdown for TNM app helper threads