Added catalog destroy function