fix bug 1112209 - 'set -e' doesn't work with the way we're doing using r...

...ead here