end animation gracefully