They are taxed as a capital loss and can be claimed in the year the security becomes worthless.