Add handling for exceptions during ray propagation.
Add ability to attach children rays to a ray.