Catch more socket errors. Fixes saltstack/salt-bootstrap#122