visu plugin shutdown socket before close