Propagate error codes down to the calling shell