I f used during the week or so of withdrawals you should be OK. Look for and try alternatives to get to sleep. Melatonin, Tylenol PM, Valerian root etc. You don't want to continue to rely on drugs for sleep.
ambien, lunsesa, immovnane, all those "z" sadative.hypnoptic drugs are addictive. it works great for three or four months but then leaves you screwed you now need them to sleep, but takin more if what you rationalize as being "ok"
Have you tried Melatonin? Works great for me.
I take xanax and ambien also. If you are using it for sleep then switch them up. I will take xanax one night,amien one night and tylenol pm on other nights. I don't use anything when I can get to sleep but if I can't I do like is said. I don't want to get hooked on anything else either. When i'm not to bad I use the tylenol pm's I just can't see myself getting addicted to them. Must be careful all the time though.