I think you need to reset currentActivity here because the app is not closed when the activity returns
* add a ThreadUI.resetActivityRequestMode
* add a ActivityHandler.resetActivity()
* in ActivityHandler.resetActivity, reset currentActivity to null or undefined and call ThreadUI.resetActivityRequestMode.