exit join and Martin's exec

I have no idea how to deal with the 

child exited as a result of an unhandled exception, returns 0

in join method