Moved connecting into its own thread - and wrapped the ReadThread loop for TCP with some Exception handling for NullPointers and Socket Exceptions.
Cleanup
Fixed the UDP connect issue - I had moved the callbackContext into SocketData.connect but forgot to actually, you know, CALL BACK for UDP. :)
Merge pull request #133 from grahamkennery/master

Moving chrome.socket.connect to a Thread