clean script scripts and add a full restart at the end