solve closed socket bug, reject response if it has errors
Merge pull request #28 from collectrium/fix-socket-bugs

solve closed socket bug, reject response if it has errors