Disconnecting sockets on error.
Merge branch 'read-error'