resolve #270: catch shell errors

@kevgo
Extract a `should_print_result?` method here?