return value fix for runWithTry