After redirect end the app.