Updated to call SCardDisconnect if we detect a previously connected slot --
this fixes a regression in the previous commit where a smartcard would not
function after being inserted, removed, and reinserted