Change file closing strategy when persisting a label