try:
unmount(device, "")
logging.debug('Unmounted %s' % device)
except RuntimeError:
logging.debug('RuntimeError while umount %s, ignoring' % device)
try:
unmount(device, "")
logging.debug('Unmounted %s' % device)
except RuntimeError:
logging.debug('RuntimeError while umount %s, ignoring' % device)