close already opened pack files on exception