Closing a crafting table while a stack of custom items is in its inventory would put the item back in the player inventory using many stacks of size 1 rather than the whole stack in 1 slot
The contents of a pocket container would be erased if a player would open it while looking at most blocks