I've got another question for you

Due to some particularly tricky integration with another library we would like to be able to reset from the C++ all global AS handler variables to null. That would allow automatic release of reference counted resources in that external library. How can we do that?