Refactor Client
Shutdown more gracefully
Fix a bug
Close all threads on quit
Shutdown gracefully on server side
Fix coding style
Give feedback on failure