Added try / except around socket connection
Merge pull request #1 from craigmaloney/master

Added try / except around socket connection