Global variable init/finalization better handled