My gf is a heroin addict, and she has shared that the worst detox experiences she's ever had have been while in jail, twice. I imagine it had to do with the level at which she was using combined with a less than comfortable environment to be sick in.