Adding support to close the app without coming back to the login page