Side Effects -

A new series produced for Adult Swim and Max that explores psychedelic themes.

: A 2002 short film about a shy man who enters a drug trial and falls in love, only for the trial's effects to complicate the relationship. Side Effects

: A novel by Michael Palmer about a pathologist who uncovers a conspiracy involving illegal medical testing. A new series produced for Adult Swim and

: The film follows Emily Taylor ( Rooney Mara ), who is prescribed an experimental antidepressant called Ablixa after her husband is released from prison. Side Effects

: While on the drug, Emily sleepwalks and stabs her husband to death. She is declared not guilty by reason of insanity and sent to a psychiatric facility.

Help me understand the messed up ending of Side Effects(2013)