The question of whether this is permitted is really a question of how other states will react to the withdrawal; for instance, another state might impose sanctions or go to war over a treaty violation