- Applied Jamie Brigg's patch (close sockets after error)