splashScreen.close();
	public void onEnd()	{		//Last update with total number of tasks executed.		splashScreen.updateProgress("");				//Try to log onto OMEDS and retry upon failure for at most as many        //times as specified in the Container's configuration.        Registry reg = container.getRegistry();        LoginConfig cfg = new LoginConfig(reg);        int max = cfg.getMaxRetry();        LoginService loginSvc = (LoginService) reg.lookup(LookupNames.LOGIN);        boolean succeeded = false;        while (0 < max--) {            UserCredentials uc = splashScreen.getUserCredentials();            if ((succeeded = loginSvc.login(uc))) break;        }        //Now get rid of the Splash Screen.        splashScreen.close();                //Exit if we couldn't manage to log in.        if (!succeeded) {            UserNotifier un = UIFactory.makeUserNotifier();            un.notifyError("Login Failure", "A valid connection to OMEDS "+                    "couldn't be established.  The application will exit.");            container.exit();        }    }