Cleanup CDR resources on exit.