Handle subprocess errors.