void (int exitCode) { if (!httpAuthenticator.wasRequested()) { return; } LOG.debug("auth listener: process terminated. auth failed=" + myHttpAuthFailed + ", cancelled=" + httpAuthenticator.wasCancelled()); if (!httpAuthenticator.wasCancelled()) { if (myHttpAuthFailed) { httpAuthenticator.forgetPassword(); } else { httpAuthenticator.saveAuthData(); } } else { myHttpAuthFailed = false; } }