public override void OnGuiClosed()
        {
            base.OnGuiClosed();

            traderInventory.SlotModified -= TraderInventory_SlotModified;

            (owningEntity as EntityTrader).talkUtil.Talk(EnumTalkType.Goodbye);

            capi.Network.SendPacketClient(capi.World.Player.InventoryManager.CloseInventory(traderInventory));

            SingleComposer.GetSlotGrid("traderSellingSlots")?.OnGuiClosed(capi);
            SingleComposer.GetSlotGrid("playerBuyingSlots")?.OnGuiClosed(capi);
            SingleComposer.GetSlotGrid("traderBuyingSlots")?.OnGuiClosed(capi);
            SingleComposer.GetSlotGrid("playerSellingSlots")?.OnGuiClosed(capi);

            capi.Network.SendPacketClient(auctionSlotInv.Close(capi.World.Player));

            auctionSys.DidLeaveAuctionHouse();
        }