refactor: do not transition to retry state outside of state code
refactor: do not transition to retry state outside of state code

The transition to the transient login state could happen while a message 
is still being processed, causing further state events to be dispatched 
to the wrong state.

pekim/tedious,tediousjs/tedious,tediousjs/tedious