try using wait to determine exit status of execed child