It is because you are not switching screens correctly.
Edit: To exit application, use close application block available under control section.
close application