Cleanup of glo_debug during shutdown. Issue #60