Bukkit/CraftBukkit — pull request #1312 by bloodmc (2014-01-06 21:34:19+00:00)
Title: Update chest animation after cancelling InventoryOpenEvent. Fixes BUKKIT-1440

Currently if a plugin cancels an InventoryOpenEvent for vanilla chests, the chest animation for clients is stuck in the open state since IInventory's closeChest method is never called. To fix the issue, closeChest is called before exiting the display GUI method.

More info can be found here
https://bukkit.atlassian.net/browse/BUKKIT-1440