Run the closeInventory after the event has been run.