Handle shell command failures gracefully.

Fixes #123.