Looks good. I think umount will probably return an error value you could check too?