The shed was probably THE reason- & snakes seem to feel them coming & know before we can see any signs, so when your snake refuses food, wait a few days & watch- often our snakes know exactly what they're doing, they just can't manage to tell us.
He had a really nice clean shed, so i will be trying again soon!