R’ Moshe Halberstam (Yeschurun 15 page 646): Let’s return to the original question concerning a wicked molester whose evil inclination forces him to sin and be wicked and it is possible to turn him over to the government in order that he be incarcerated in prison for a number of years until he calms done and returns to G‑d wholeheartedly. According to the sources we discussed before it is clear that there is no sin or transgression in handing him over to the authorities. In fact the opposite is true – it is a mitzva because by doing so he is caused to stop from doing the disgusting deeds. In addition we know that the government will not execute him. Therefore the essence of his punishment is that he will be forced to dwell for a number of years in prison. This will be beneficial to him in that they will assign him a psychologist or psychiatrist who will supervise him and his activities with a watchful eye. Perhaps he will be able to find a resolution of his torment by means of this treatment. So in such a case it is obvious that it is a good thing to save him and to save his family from his incestual attacks on them.