Handle all types of errors during trace stitching.