lvm: Check for errors when running commands