Catch SecurityExceptions from socket connects.

Versions of android prior to 4.3 would throw RTEs
if the underlying socket threw an EACCES error.

See change 50144 on the Android Open Source Project.
Merge pull request #244 from narayank/master

Catch SecurityExceptions from socket connects.