I know I'm generalising wildy. But if you are mentally fit to make the choice to kill someone for whatever reasons - be they jealousy, anger, financial gain, plan out the finer details of the murder, cover your tracks so you don't get caught, then you're mentally fit to stand trial and be fully responsible for your actions.
If its a 'crime of passion' - a normally lucid person pushed over the edge to murder by circumstances and / or brain chemicals then sorry - I still don't want that person standing next to me in the supermarket or behind me when I wait for a tube. We all have a choice to control that beast within us and if you can't control yours then unfair as it may seem, that person has proved that they can flip at any time and are not responsible enough to be part of society
If someones brain chemistry pushes them beyond the bounds of reality and they are completely at the mercy of seratonin / testosterone imbalances, then all the more reason for them to be out of circulation. I know this sounds cruel, and I know it gets back to the argument of imprisoning people for our protection or as a punishment, and not for reasons of rehabilitation.
But to have large sections of society who we acknowledge to be completely unable to control their violent and aggressive urges walking freely among us because 'is not their fault' doesn't compute.
Can any of us honestly say that if we were not in a current lucid, balanced state (I know I'm making a big assumption about the audience here

), and we knew that at some point in the future we were going to lose that grasp of reality and become raging beasts....would we not want ourselves off the streets?