Fix of gl_dl1_to_dl2
Refacto of the code to make it clearer, and and try/except to terminate the processes if an error arises (until now, the job continues indefinitely)
Refacto of the code to make it clearer, and and try/except to terminate the processes if an error arises (until now, the job continues indefinitely)