Added code to remove all animations form layer and sublayers when canceling the transition