Replace cleanup process in animation completion with the cancel method