Reconnect when write fails

If you use the built-in Dial or DialTimeout function g2s will attempt to reconnect when a write fails. This will happen rarely, if interface becomes invalid for a time.

Should be backwards compatible.

Documentation updated.