If you think some things are valuable enough to be kept in the internet
archive, you can give them a heads up before removing the site completely.
Otherwise, there’s also a way to have a Google sheets with all links to save
and have them all saved again one last time to help out.
Edouard Choin
I believe I have fixed it by creating a simple struct that can be created in
automatic scope of the main function and when it is destructed at the end of
the function block it seems to work fine. The problem occurs when we have a
static pointer that prevents the destruction of the resources unti