1. Open any chest
2. Wait for the opening sound to stop playing without moving the mouse
3. Close the chest
If the mouse cursor was not moved, the opening sound will be played again before playing the closing sound.
Also affects Trapped Chests.
Does not happen if the MC window loses focus before closing the chest.
Seems like the issue does not happen everytime you try reproducing it; it's a bit random.