Yes, it is possible to end a session with the Check App State activity.
You can use the “Check App State” activity to store the value in a boolean variable, just like the “Element Exists” activity does, and then use “Is True” in the condition of the Retry Scope.