Added try catch for packing files.