When you release the button then the conditions for the other animations are true such as idle, walk or whichever on is interrupting it. You can add to the condition for the interrupting animation 'attack animation is not playing', that way it will finish playing attack before reverting to the other ones.