ensure that dmg gets unmounted