Avoid raising error before unmounting dmg