call close() method on packs and repos