That work for me.

 

But im not sure why put 

current.state = previous.state;

Before setAbortAction works? Any documentation or spec for that?