Catch nfc errors and handle them appropriately.