Re-set state machine listener when main activity destroyed and restarted