Fixed missing socket import which caused exception handler to fail when connection timed out.
Merge pull request #2 from nramsbottom/master

Fixed missing socket import.