proper cleanup: close files if something goes wrong.
proper cleanup: close files if something goes wrong.


git-svn-id: 444ed946b9c2220da791e84c3dd156a05f92db99@2704 c6295689-39f2-0310-b995-f0e70906c6a9

mouse07410/OpenSC,adminmt/OpenSC,0x7678/myOpenSC,metsma/OpenSC,CardContact/OpenSC,dirkx/OpenSC.tokend,philipWendland/OpenSC,velter/OpenSC,velter/OpenSC,dirkx/OpenSC.tokend,ieugen/OpenSC,aobaid/OpenSC,dirkx/OpenSC.tokend,Jakuje/OpenSC,AktivCo/OpenSC,carlhoerberg/OpenSC,dengert/OpenSC,frankmorgner/OpenSC,0x7678/OpenSC,marschap/pkg-opensc,LudovicRousseau/OpenSC,financeX/OpenSC,fabled/OpenSC,martinpaljak/OpenSC,ieugen/OpenSC,jpki/OpenSC,aobaid/OpenSC,fabled/OpenSC,l1k/OpenSC,hongquan/OpenSC-main,jpki/OpenSC,financeX/OpenSC,UIKit0/OpenSC,martinpaljak/OpenSC,hongquan/OpenSC-main,ieugen/OpenSC,rickyepoderi/OpenSC,l1k/OpenSC,UIKit0/OpenSC,0x7678/OpenSC,hhonkanen/OpenSC,aobaid/OpenSC,jpki/OpenSC,philipWendland/OpenSC,Jakuje/OpenSC,adminmt/OpenSC,kasparsd/opensc-latvia-id,fabled/OpenSC,martinpaljak/OpenSC,AktivCo/OpenSC,germanblanco/OpenSC,nmav/OpenSC,l1k/OpenSC,LudovicRousseau/OpenSC,OpenSC/OpenSC,germanblanco/OpenSC,nmav/OpenSC,gentoo/OpenSC,carlhoerberg/OpenSC,OpenSC/OpenSC,gentoo/OpenSC,metsma/OpenSC,marschap/pkg-opensc,rickyepoderi/OpenSC,marschap/pkg-opensc,OpenSC/OpenSC,CardContact/OpenSC,frankmorgner/OpenSC,0x7678/OpenSC,adminmt/OpenSC,dirkx/OpenSC,0x7678/myOpenSC,gemini/OpenSC,LudovicRousseau/OpenSC,Jakuje/OpenSC,frankmorgner/OpenSC,kasparsd/opensc-latvia-id,metsma/OpenSC,ieugen/OpenSC,gentoo/OpenSC,gemini/OpenSC,UIKit0/OpenSC,0x7678/myOpenSC,aobaid/OpenSC,CardContact/OpenSC,gentoo/OpenSC,kasparsd/opensc-latvia-id,dirkx/OpenSC,UIKit0/OpenSC,financeX/OpenSC,hhonkanen/OpenSC,carlhoerberg/OpenSC,adminmt/OpenSC,dirkx/OpenSC,AktivCo/OpenSC,tidatida/OpenSC,viktorTarasov/OpenSC-SM,dirkx/OpenSC,Jakuje/OpenSC,fabled/OpenSC,frankmorgner/OpenSC,0x7678/myOpenSC,mouse07410/OpenSC,dirkx/OpenSC,financeX/OpenSC,mtrojnar/OpenSC,hhonkanen/OpenSC,dirkx/OpenSC.tokend,viktorTarasov/OpenSC-SM,tidatida/OpenSC,velter/OpenSC,marschap/pkg-opensc,ieugen/OpenSC,viktorTarasov/OpenSC-SM,tidatida/OpenSC,dirkx/OpenSC.tokend,velter/OpenSC,gemini/OpenSC,dengert/OpenSC,rickyepoderi/OpenSC,dirkx/OpenSC.tokend,mouse07410/OpenSC,tidatida/OpenSC,carlhoerberg/OpenSC,germanblanco/OpenSC,dengert/OpenSC,philipWendland/OpenSC,0x7678/myOpenSC,nmav/OpenSC,0x7678/OpenSC,mtrojnar/OpenSC,kasparsd/opensc-latvia-id,financeX/OpenSC,gentoo/OpenSC,hongquan/OpenSC-main,carlhoerberg/OpenSC,mtrojnar/OpenSC