it is well known, thats not optimal to brumate snakes when they are going to shed, because it could cause problems during hibernation.
So best is, as it happend to you, when they shed in the phase of preparation.

go on all right