Check success of socket setup calls and invalidate it in case of failure
Merge branch 'master' of https://github.com/samdmarshall/SDMMobileDevice into sock-fail-invalidate

# By samdmarshall
# Via samdmarshall
* 'master' of https://github.com/samdmarshall/SDMMobileDevice:
  null check
  fixing typo
Merge pull request #46 from JeremyAgost/sock-fail-invalidate

Check success of socket setup calls and invalidate it in case of failure