rt.Terminate;
if rt <> nil then rt.terminate; ... rt := TReadCardThread.Create(true); rt.FreeOnTerminate := True;