node: disconnect function
disconnect sub socket before deleting node