Windows daemon adjustments; Shutdown database on daemon unload