Handle closed sockets the same way as 'shutdown'