channels/smartcard: cleanup