fix to TcpClient to detect connection failures
Merge pull request #29 from dart-gde/socket-fix

fix to TcpClient to detect connection failures