channels/smartcard: cleanup smartcard operations