Yes, of course the concern is keeping kids from killing themselves, as opposed to stopping the conditions that make them want to commit suicide.
First of all, they are convicted in a court of law. They have to be kept somewhere in a secure environment.
We have a problem right now. The problem is lack of responsibility by the politician in the city halls.
When a person is arrested by the police and a judge has decided that they can not be free until the trial is over, then the State pays for their stay in a secure facility. But once the verdict is handed out the city hall has to decide where the offender has to serve time. Some cities has to be fined before they come into action. That takes up costly space and sometimes even bank robbers are let loose because there is no space in a juvenile facility and it is forbidden to detain them in an adult facility. Cash management is hurting these young people, who should be guided into a facility where they could serve time AND learn some skills.
Then when they are release the easies way to prevent new crime is to give them a job and a small room if they can not live with their family. The root to all evil is unemployment. There are a lot of jobs to get in Denmark. In fact we have a shortage of manpower.
But once again they are let down. They have to adjust over time to a life as a free person. The city hall should have brought them home to a small room not bigger than a cell which is locked by the night and a job during the day (combined with a GPS-bracelet). Once they have served time fully, the lock and the GPS-bracelet is removed and they continue in their job until they themselves decide what to do with their future.
You have a similar case in Texas where Michael Perry is on deathrow. He started a life of crime after being kicked out of Casa by the Sea with no ID and it did cost innocent lives. He should have been marched down to the nearest burger joint and put into action, given a small room with a bed and a mentor, who could sit and listen to him. Those lives he took could have been saved.