fix typo and only reboot on successful umount