Clear animation and close menu if navigating away while menu is closing.