forked from wylab/wylab-station-14
33698e02a1
In autogen mode (DestinationFile set), Init() returns early before _dbManager.Init() is called. But Dispose() was calling _dbManager.Shutdown() specifically when DestinationFile was set, causing NullReferenceException. Inverted the condition so shutdown only happens in normal mode when managers were actually initialized.