Fix #60
Add wait thread destroy