Fix socket leak in PluginComm by closing all sockets in error state, checked using poll().
Fix socket leak in PluginComm by closing all sockets in error state, checked using poll().

dazeus/dazeus-core,dazeus/dazeus-core,dazeus/dazeus-core,dazeus/dazeus-core