small fix
before deliver code
1. multi-threading client
2. fix mem loss
3. change exit() to return
add some comments