actually I can see this failing , it seems to a race condition between the atom and the frame closing.
we should probably make this a wait, or check for the displayed_app to be "Homescreen"