Drop unused code
Waiting for thread terminate