Bug fix: Mono seems to set SocketError in Connected method incorrectly. Workaround is made