Tangentially related but it has been my experience (I knew several people who died from opioid overdose) and also in literature[1] that overdoses frequently occur after rehab. Due to a drop in tolerance.
"The clustering of the deaths from overdose in the group of patients who had successfully completed treatment is counterintuitive and illogical—unless it derives from loss of tolerance and consequent unpredictability of resumed heroin use."