Normally there will be no loss when a life insurance policy is sold for its cash surrender value ( Q 62).
For the treatment of amounts received from a viatical settlement provider, see Q 57.