Block destructors

I’m doing some logging of what time signal events happen and in the
destructor of a custom signal block, I’m printing a log line to a file,
followed by an fflush, but i’m not always getting my line. Is the
destructor not happening, or is something else transpiring?

Is there a way to ensure a destructor will fire even if a user ctrl+c’s
a flowgraph, especially with WXGUI/GRC, or is that not what is
happening?