Scanning a smart card can take a very long time and with the current design the UI is completely non-responsive during this time. As the PKCS11 interface doesn't leave any room for periodic pauses for ui updates our only option to fixing this is to run those operations in a separate thread (or process, but it's probably not worth it).