now closing sockets on sending exception