Cleanup setting of thread name