fixed socket error routing
Merge pull request #563 from Zolmeister/development

fixed socket error routing