If you yank the smart card midway during the login, you get the weird scenario of the client exiting on you. This is most likely caused by the code thinking that it should terminate on card removal, even though the session is only partially set up so far. This is unexpected so we should probably fix this scenario.