Fix NFC shutdown logic