Running C++ code upon an actor's destruction?

Thank you for your help!