Dismiss progress when exiting activity, and remove authentication activity from history when done