Remove some warnings in the client code.
Make sure all workers are termianted when server exits.
Merge branch 'server_exit'
Merge branch 'client_warnings'