In my country we have preventive detention. A psycho does his ten or fifteen years, but if is decided that he is a menace for others, he stays in jail.