Updated YunClient::connect method'

Now the connect method closes the resource on the linux side when the connection fails.

Closes https://github.com/arduino/YunBridge/issues/24

Forum thread: http://forum.arduino.cc/index.php?topic=278104.0