Since we create connection and selecting YubiKey applet in constructor of application (to avoid user calling extra select() method). We need to close connection if selection failed. So that user can reuse connection for another applet.
Also small improvements on demo:
show firmware version of the key in YubiKey Settings (managements applet) for NEO keys.
hide snackbars if detected usb communication unless we get error that permissions are required
clean up raw communication log when YubiKey was ejected
Since we create connection and selecting YubiKey applet in constructor of application (to avoid user calling extra select() method). We need to close connection if selection failed. So that user can reuse connection for another applet. Also small improvements on demo: