Fixes #128. Ensure end animations states are set

The animation can be stopped in the middle by a rotation. This ensures
that the ending state of the animation is set.