Check for files and umount only if you can mount it first.