Don't show the login error if the activity is finishing. Fixes #31.