Update Animation Docker buttons when closing the document
Otherwise, when closing the document while playback, Play button gets stuck in "Stop" mode