Catch socket hang up error
small cleanup
any type for error
Merge pull request #386 from Wikia/HG-376

socket hang up issue