Use return codes from lvm commands.

This prevents some stack traces from attempting to process
invalid output from lvm commands.