[DF-4152]Compilation fixes, kill is safe related Release of thread.