Moving chrome.socket.connect to a Thread

Older versions of Android seem to crash when creating a Socket on the Main thread (NetworkOnMainThreadException). This should fix things! #132

Also, wrapped the TCP section of the read loop with some exception handling for null pointers and closed sockets.