data race condition on thread::_running and thread::_id
do null check before the variable is used
remove unnecessary compared statement
fix resource leak
Merge pull request #67 from y-kamiya/develop

fix some defects