Fixed cleanup when error on customize script