Is This Normal?

I am very confused! My husband has just been sentenced and has gone to prison. I am devastated but at the same time relieved. Should I feel this way?
In my mind I am also thinking, do I stand by him or just walk?
He is a drug addict and although he did not treat me badly; he for sure made my life miserable. I am probably making no sense at all because my head is all over the place. Can anyone shed any light on why I feel this way or is this perfectly normal? From AG.