[daemon/server]Fix bug calling Client.close for non-client socket.   + Move Select-error-checking into select-handling function.
[daemon/server]Fix bug calling Client.close for non-client socket.
  + Move Select-error-checking into select-handling function.

rawler/bithorde,rawler/bithorde,rawler/bithorde