Disconnecting sockets on error.