use parent  and localised $@

- Added a more descriptive variable to capture $@ after the eval block.