cleanup our socket handling code.
1. don't make the conn a thread object
2. don'
t log exceptions we know we are going to create to interrupt stuff.
3. check for null pointers
Merge pull request #133 from Floobits/cleanup-conn

cleanup our socket handling code.