So I have made a plugin based on the PrepareAnvilEvent, where I store some variables of the players that uses the anvil. At the end, I delete their variables either when the anvil gets empty or when they pick the resulted item. If they press escape though (without picking the resulted item) and then does NOT use the anvil again, their variables remain initialized since I have not found a way to track when they exited the anvil. The PrepareAnvilEvent is not Cancellable, and when a player closes the anvil gui the event does NOT run again as it usally does by doing anything else. Is there a solution to this? I thought of adding a task to remove them later, but I would preferably avoid this.