fixing window exit warning on dam download