Implement a closeGUIOnBuy option, which would close the entire GUI once the player had purchased the item.
Currently, there are only such options for closeGUIOnClick, but nothing for after the player has purchased an item.